ClientWebSocketOptions Class
.NET Framework 4.5
Options to use with a ClientWebSocket object.
Namespace: System.Net.WebSockets
Assembly: System (in System.dll)
The ClientWebSocketOptions type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ClientCertificates | Gets or sets a collection of client side certificates. |
![]() | Cookies | Gets or sets the cookies associated with the request. |
![]() | Credentials | Gets or sets the credential information for the client. |
![]() | KeepAliveInterval | Gets or sets the WebSocket protocol keep-alive interval in milliseconds. |
![]() | Proxy | Gets or sets the proxy for WebSocket requests. |
![]() | UseDefaultCredentials | Gets or sets a Boolean value that indicates if default credentials should be used during WebSocket handshake. |
| Name | Description | |
|---|---|---|
![]() | AddSubProtocol | Adds a sub-protocol to be negotiated during the WebSocket connection handshake. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | SetBuffer(Int32, Int32) | Sets the client buffer parameters. |
![]() | SetBuffer(Int32, Int32, ArraySegment<Byte>) | Sets client buffer parameters. |
![]() | SetRequestHeader | Creates a HTTP request header and its value. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Windows 8, Windows Server 2012
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

