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

ConnectionMonitorHttpConfiguration 构造函数

定义

重载

ConnectionMonitorHttpConfiguration()

初始化 ConnectionMonitorHttpConfiguration 类的新实例。

ConnectionMonitorHttpConfiguration(Nullable<Int32>, String, String, IList<HTTPHeader>, IList<String>, Nullable<Boolean>)

初始化 ConnectionMonitorHttpConfiguration 类的新实例。

ConnectionMonitorHttpConfiguration()

初始化 ConnectionMonitorHttpConfiguration 类的新实例。

public ConnectionMonitorHttpConfiguration();
Public Sub New ()

适用于

ConnectionMonitorHttpConfiguration(Nullable<Int32>, String, String, IList<HTTPHeader>, IList<String>, Nullable<Boolean>)

初始化 ConnectionMonitorHttpConfiguration 类的新实例。

public ConnectionMonitorHttpConfiguration(int? port = default, string method = default, string path = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.HTTPHeader> requestHeaders = default, System.Collections.Generic.IList<string> validStatusCodeRanges = default, bool? preferHTTPS = default);
new Microsoft.Azure.Management.Network.Models.ConnectionMonitorHttpConfiguration : Nullable<int> * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.HTTPHeader> * System.Collections.Generic.IList<string> * Nullable<bool> -> Microsoft.Azure.Management.Network.Models.ConnectionMonitorHttpConfiguration
Public Sub New (Optional port As Nullable(Of Integer) = Nothing, Optional method As String = Nothing, Optional path As String = Nothing, Optional requestHeaders As IList(Of HTTPHeader) = Nothing, Optional validStatusCodeRanges As IList(Of String) = Nothing, Optional preferHTTPS As Nullable(Of Boolean) = Nothing)

参数

port
Nullable<Int32>

要连接到的端口。

method
String

要使用的 HTTP 方法。 可能的值包括:“Get”、“Post”

path
String

URI 的路径组件。 例如,“/dir1/dir2”。

requestHeaders
IList<HTTPHeader>

要随请求一起传输的 HTTP 标头。

validStatusCodeRanges
IList<String>

要考虑成功的 HTTP 状态代码。 例如,“2xx,301-304,418”。

preferHTTPS
Nullable<Boolean>

指示在选择不显式的情况下,HTTPS 是否优先于 HTTPS 的值。

适用于