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:
property String^ SubProtocol {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The name of the protocol.

Exception Condition
ArgumentOutOfRangeException

The protocol name assigned to the property contains invalid characters.

.NET Framework
Available since 4.5
Return to top
Show: