语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmNetworkModelFactory.NetworkHttpConfiguration Method

Definition

HTTP configuration of the connectivity check.

public static Azure.ResourceManager.Network.Models.NetworkHttpConfiguration NetworkHttpConfiguration(Azure.ResourceManager.Network.Models.NetworkWatcherHttpMethod? method = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkWatcherHttpHeader> headers = default, System.Collections.Generic.IEnumerable<int> validStatusCodes = default);
static member NetworkHttpConfiguration : Nullable<Azure.ResourceManager.Network.Models.NetworkWatcherHttpMethod> * seq<Azure.ResourceManager.Network.Models.NetworkWatcherHttpHeader> * seq<int> -> Azure.ResourceManager.Network.Models.NetworkHttpConfiguration
Public Shared Function NetworkHttpConfiguration (Optional method As Nullable(Of NetworkWatcherHttpMethod) = Nothing, Optional headers As IEnumerable(Of NetworkWatcherHttpHeader) = Nothing, Optional validStatusCodes As IEnumerable(Of Integer) = Nothing) As NetworkHttpConfiguration

Parameters

method
Nullable<NetworkWatcherHttpMethod>

HTTP method.

headers
IEnumerable<NetworkWatcherHttpHeader>

List of HTTP headers.

validStatusCodes
IEnumerable<Int32>

Valid status codes.

Returns

A new NetworkHttpConfiguration instance for mocking.

Applies to