HttpContextBase.WebSocketRequestedProtocols 属性

定义

在派生类中实现时,获取客户端请求的协议的顺序列表。

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

属性值

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

适用于