AspNetWebSocketOptions.SubProtocol 属性

定义

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

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

属性值

协议的名称。

例外

分配到包含无效字符的属性的协议名称。

适用于