ClientWebSocketOptions Class

.NET Framework (current version)
 

Options to use with a ClientWebSocket object.

Namespace:   System.Net.WebSockets
Assembly:  System (in System.dll)

System.Object
  System.Net.WebSockets.ClientWebSocketOptions

public sealed class ClientWebSocketOptions

NameDescription
System_CAPS_pubpropertyClientCertificates

Gets or sets a collection of client side certificates.

System_CAPS_pubpropertyCookies

Gets or sets the cookies associated with the request.

System_CAPS_pubpropertyCredentials

Gets or sets the credential information for the client.

System_CAPS_pubpropertyKeepAliveInterval

Gets or sets the WebSocket protocol keep-alive interval in milliseconds.

System_CAPS_pubpropertyProxy

Gets or sets the proxy for WebSocket requests.

System_CAPS_pubpropertyUseDefaultCredentials

Gets or sets a Boolean value that indicates if default credentials should be used during WebSocket handshake.

NameDescription
System_CAPS_pubmethodAddSubProtocol(String)

Adds a sub-protocol to be negotiated during the WebSocket connection handshake.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSetBuffer(Int32, Int32)

Sets the client buffer parameters.

System_CAPS_pubmethodSetBuffer(Int32, Int32, ArraySegment<Byte>)

Sets client buffer parameters.

System_CAPS_pubmethodSetRequestHeader(String, String)

Creates a HTTP request header and its value.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.5

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: