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

HTTPConfiguration 构造函数

定义

重载

HTTPConfiguration()

初始化 HTTPConfiguration 类的新实例。

HTTPConfiguration(String, IList<HTTPHeader>, IList<Nullable<Int32>>)

初始化 HTTPConfiguration 类的新实例。

HTTPConfiguration()

初始化 HTTPConfiguration 类的新实例。

public HTTPConfiguration ();
Public Sub New ()

适用于

HTTPConfiguration(String, IList<HTTPHeader>, IList<Nullable<Int32>>)

初始化 HTTPConfiguration 类的新实例。

public HTTPConfiguration (string method = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.HTTPHeader> headers = default, System.Collections.Generic.IList<int?> validStatusCodes = default);
new Microsoft.Azure.Management.Network.Models.HTTPConfiguration : string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.HTTPHeader> * System.Collections.Generic.IList<Nullable<int>> -> Microsoft.Azure.Management.Network.Models.HTTPConfiguration
Public Sub New (Optional method As String = Nothing, Optional headers As IList(Of HTTPHeader) = Nothing, Optional validStatusCodes As IList(Of Nullable(Of Integer)) = Nothing)

参数

method
String

HTTP 方法。 可能的值包括:“Get”

headers
IList<HTTPHeader>

HTTP 标头列表。

validStatusCodes
IList<Nullable<Int32>>

有效的状态代码。

适用于