ClientWebSocketOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options to use with a ClientWebSocket object.
public ref class ClientWebSocketOptions sealed
public sealed class ClientWebSocketOptions
type ClientWebSocketOptions = class
Public NotInheritable Class ClientWebSocketOptions
- Inheritance
-
ClientWebSocketOptions
Properties
| 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. |
| Proxy |
Gets or sets the proxy for WebSocket requests. |
| RemoteCertificateValidationCallback |
Gets or sets the callback to validate a server certificate. |
| UseDefaultCredentials |
Gets or sets a Boolean value that indicates if default credentials should be used during WebSocket handshake. |
Methods
| Name | Description |
|---|---|
| AddSubProtocol(String) |
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 the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| SetBuffer(Int32, Int32, ArraySegment<Byte>) |
Sets client buffer parameters. |
| SetBuffer(Int32, Int32) |
Sets the client buffer parameters. |
| SetRequestHeader(String, String) |
Creates a HTTP request header and its value. |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |