共用方式為


AspNetWebSocketContext.QueryString 屬性

定義

從用戶端傳送的 AspNetWebSocket 訊息中取得查詢字串變數的集合。

public:
 virtual property System::Collections::Specialized::NameValueCollection ^ QueryString { System::Collections::Specialized::NameValueCollection ^ get(); };
public virtual System.Collections.Specialized.NameValueCollection QueryString { get; }
member this.QueryString : System.Collections.Specialized.NameValueCollection
Public Overridable ReadOnly Property QueryString As NameValueCollection

屬性值

NameValueCollection

用戶端送出的查詢字串變數的集合。 例如,如果要求 URL 為 http://www.contoso.com/default.aspx?id=44 ,這個屬性會傳回包含單一專案的集合,其值為 id = 44

例外狀況

屬性未實作。

適用於