HttpContext.WebSocketRequestedProtocols 属性

定义

获取客户要求的子协议列表的有序列表。

public:
 property System::Collections::Generic::IList<System::String ^> ^ WebSocketRequestedProtocols { System::Collections::Generic::IList<System::String ^> ^ get(); };
public System.Collections.Generic.IList<string> WebSocketRequestedProtocols { get; }
member this.WebSocketRequestedProtocols : System.Collections.Generic.IList<string>
Public ReadOnly Property WebSocketRequestedProtocols As IList(Of String)

属性值

IList<String>

请求的协议,如果不是 AspNetWebSocket 请求,或者列表不存在则为 null

适用于