次の方法で共有


SelectQuery.QueryString プロパティ

SelectQuery のクエリを文字列形式で取得または設定します。

Overrides Public Property QueryString As String
[C#]
public override string QueryString {get; set;}
[C++]
public: __property String* get_QueryString();public: __property void set_QueryString(String*);
[JScript]
public override function get QueryString() : String;public override function set QueryString(String);

プロパティ値

クエリを表す文字列。

解説

このプロパティ値を設定すると、それまでにオブジェクトに格納された値をすべてオーバーライドします。また、このプロパティを選択すると、文字列を再解析したときにオブジェクトのその他のメンバが更新されます。

使用例

 
SelectQuery s = new SelectQuery(); 
s.QueryString = "SELECT * FROM Win32_LogicalDisk";
   
[Visual Basic] 
Dim s As New SelectQuery()
s.QueryString = "SELECT * FROM Win32_LogicalDisk"
   

[C++, JScript] C++ および JScript のサンプルはありません。Visual Basic および C# のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

SelectQuery クラス | SelectQuery メンバ | System.Management 名前空間