HttpExpectationHeaderValue.Value 屬性

定義

取得或設定 預期 HTTP 標頭中使用的伺服器行為值。

public:
 property Platform::String ^ Value { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Value();

void Value(winrt::hstring value);
public string Value { get; set; }
var string = httpExpectationHeaderValue.value;
httpExpectationHeaderValue.value = string;
Public Property Value As String

屬性值

String

Platform::String

winrt::hstring

預期HTTP 標頭中使用的伺服器行為值。

備註

指定的伺服器行為可能不需要值,而 Value 屬性會是空字串。 例如, 100-continue 永遠不會與值搭配使用。

適用於