HttpWebRequest.Expect 属性

定义

获取或设置 HTTP 标头的值 Expect

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

属性值

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

例外

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

注解

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

适用于

另请参阅