HttpResponseMessageProperty::StatusDescription Property

 

Gets or sets the description of the status code of the current HTTP response to which this property is attached.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property String^ StatusDescription {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

Returns the StatusDescription to send for the HTTP response.

This property provides a user-friendly description of the returned status code.

This shows how to get the description of the status code of the current HTTP response to which this property is attached:

   string statusDescription =
responseProperty.StatusDescription;

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: