HttpWebRequest.Expect Proprietà

Definizione

Ottiene o imposta il valore dell'intestazione 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

Valore della proprietà

Contenuto dell'intestazione Expect HTTP. Il valore predefinito è null.

Eccezioni

Expect è impostato su una stringa che contiene "100-continue" come sottostringa.

Commenti

Il valore di questa proprietà viene archiviato in WebHeaderCollection. Se WebHeaderCollection è impostato, il valore della proprietà viene perso.

Si applica a

Vedi anche