SubProtocol Property
Collapse the table of content
Expand the table of content

AspNetWebSocketOptions.SubProtocol Property

.NET Framework (current version)

Gets or sets the name of an application-specific protocol that a remote client and a server can use to exchange data over an AspNetWebSocket connection.

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

public string SubProtocol { get; set; }

Property Value

Type: System.String

The name of the protocol.

Exception Condition

The protocol name assigned to the property contains invalid characters.

.NET Framework
Available since 4.5
Return to top
© 2016 Microsoft