AspNetWebSocketOptions.SubProtocol 属性

定义

获取或设置特定于应用程序的协议名称,远程客户端和服务器可使用该协议通过 AspNetWebSocket 连接交换数据。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.

public:
 property System::String ^ SubProtocol { System::String ^ get(); void set(System::String ^ value); };
public string SubProtocol { get; set; }
member this.SubProtocol : string with get, set
Public Property SubProtocol As String

属性值

String

协议的名称。The name of the protocol.

例外

分配到包含无效字符的属性的协议名称。The protocol name assigned to the property contains invalid characters.

适用于