Share via


HttpExpectationHeaderValue 构造函数

定义

重载

HttpExpectationHeaderValue(String)

使用名称初始化 HttpExpectationHeaderValue 类的新实例。

HttpExpectationHeaderValue(String, String)

使用名称的名称和值初始化 HttpExpectationHeaderValue 类的新实例。

HttpExpectationHeaderValue(String)

使用名称初始化 HttpExpectationHeaderValue 类的新实例。

public:
 HttpExpectationHeaderValue(Platform::String ^ name);
 HttpExpectationHeaderValue(winrt::hstring const& name);
public HttpExpectationHeaderValue(string name);
function HttpExpectationHeaderValue(name)
Public Sub New (name As String)

参数

name
String

Platform::String

winrt::hstring

一个标记,表示 在 Expect HTTP 标头中使用的名称。

另请参阅

适用于

HttpExpectationHeaderValue(String, String)

使用名称的名称和值初始化 HttpExpectationHeaderValue 类的新实例。

public:
 HttpExpectationHeaderValue(Platform::String ^ name, Platform::String ^ value);
 HttpExpectationHeaderValue(winrt::hstring const& name, winrt::hstring const& value);
public HttpExpectationHeaderValue(string name, string value);
function HttpExpectationHeaderValue(name, value)
Public Sub New (name As String, value As String)

参数

name
String

Platform::String

winrt::hstring

一个标记,表示 在 Expect HTTP 标头中使用的名称。

value
String

Platform::String

winrt::hstring

在 Expect HTTP 标头中使用的名称的值。

另请参阅

适用于