HttpListenerResponse..::..ContentType Property
Gets or sets the media type of the entity body included in the response.
Namespace:
WebSocketSharp.NetAssembly: C-DEngine (in C-DEngine.dll)
Syntax
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
Exception | Condition |
---|---|
ArgumentException | The value specified for a set operation is empty. |
ObjectDisposedException | This object is closed. |