HttpWebRequest.Expect 属性

定义

获取或设置 Expect HTTP 标头的值。

public:
 property System::String ^ Expect { System::String ^ get(); void set(System::String ^ value); };
public string? Expect { get; set; }
public string Expect { get; set; }
member this.Expect : string with get, set
Public Property Expect As String

属性值

String

Expect HTTP 标头的内容。 默认值是 null

例外

Expect 设置为一个包含“100-continue”的字符串作为子字符串。

注解

此属性的值存储在 WebHeaderCollection 中。 如果设置了 WebHeaderCollection,则该属性值将丢失。

适用于

另请参阅