Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ClientWebSocketOptions Class

ClientWebSocketOptions Class

.NET Framework 4.6 and 4.5

Options to use with a ClientWebSocket object.


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

public sealed class ClientWebSocketOptions

The ClientWebSocketOptions type exposes the following members.

Public propertyClientCertificatesGets or sets a collection of client side certificates.
Public propertyCookiesGets or sets the cookies associated with the request.
Public propertyCredentialsGets or sets the credential information for the client.
Public propertyKeepAliveIntervalGets or sets the WebSocket protocol keep-alive interval in milliseconds.
Public propertyProxyGets or sets the proxy for WebSocket requests.
Public propertyUseDefaultCredentialsGets or sets a Boolean value that indicates if default credentials should be used during WebSocket handshake.

Public methodAddSubProtocolAdds a sub-protocol to be negotiated during the WebSocket connection handshake.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSetBuffer(Int32, Int32)Sets the client buffer parameters.
Public methodSetBuffer(Int32, Int32, ArraySegment<Byte>)Sets client buffer parameters.
Public methodSetRequestHeaderCreates a HTTP request header and its value.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

.NET Framework

Supported in: 4.6, 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.
© 2015 Microsoft