ClientWebSocketOptions Class

.NET Framework 4.5

Options to use with a ClientWebSocket object.

System.Object
  System.Net.WebSockets.ClientWebSocketOptions

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

public sealed class ClientWebSocketOptions

The ClientWebSocketOptions type exposes the following members.

  NameDescription
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.
Top

  NameDescription
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.)
Top

.NET Framework

Supported in: 4.6

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft