HttpContext.WebSocketRequestedProtocols 属性

定义

获取客户要求的子协议列表的有序列表。Gets the ordered list of protocols requested by the client.

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)

属性值

请求的协议,如果不是 AspNetWebSocket 请求,或者列表不存在则为 nullThe requested protocols, or null if this is not an AspNetWebSocket request or if no list is present.

适用于