C-DEngine 5.105

HttpListenerResponse..::..ContentType Property

Gets or sets the media type of the entity body included in the response.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public string ContentType { get; set; }
Public Property ContentType As String
	Get
	Set
public:
property String^ ContentType {
	String^ get ();
	void set (String^ value);
}

Field Value

A String that represents the media type of the entity body, or nullNothingnullptra null reference (Nothing in Visual Basic) if no media type is specified. This value is used for the value of the Content-Type entity-header.

Exceptions


ExceptionCondition
ArgumentException The value specified for a set operation is empty.
ObjectDisposedException This object is closed.