HttpResponseWrapper.StatusCode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the HTTP status code of the output that is returned to the client.
public:
virtual property int StatusCode { int get(); void set(int value); };
public override int StatusCode { get; set; }
member this.StatusCode : int with get, set
Public Overrides Property StatusCode As Integer
Property Value
The status code of the HTTP output that is returned to the client. The default value is 200. For information about valid status codes, see HTTP Status Codes.
Exceptions
StatusCode was set after the HTTP headers were sent.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.