HttpRequestException.StatusCode Eigenschaft

Definition

Ruft den HTTP-status Code ab, der mit ausnahme zurückgegeben werden soll.

public:
 property Nullable<System::Net::HttpStatusCode> StatusCode { Nullable<System::Net::HttpStatusCode> get(); };
public System.Net.HttpStatusCode? StatusCode { get; }
member this.StatusCode : Nullable<System.Net.HttpStatusCode>
Public ReadOnly Property StatusCode As Nullable(Of HttpStatusCode)

Eigenschaftswert

Ein HTTP-status Code, wenn die Ausnahme ein nicht erfolgreiches Ergebnis darstellt, andernfalls null.

Gilt für: