SelectQuery.ClassName プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SelectQuery.ClassName プロパティの意味・解説 

SelectQuery.ClassName プロパティ

クエリで選択されるクラス名を取得または設定します。

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Dim instance As SelectQuery
Dim value As String

value = instance.ClassName

instance.ClassName = value
public string ClassName { get;
 set; }
/** @property */
public String get_ClassName ()

/** @property */
public void set_ClassName (String value)

プロパティ値
クエリ内のクラスの名前を格納している String 値を返します。

解説解説
使用例使用例

クエリを指定して SelectQuery を初期化してから、ClassName プロパティを変更する例を次に示します。

Imports System
Imports System.Management


Public Class Sample
    Public Overloads Shared
 Function _
        Main(ByVal args() As String)
 As Integer

        Dim s As New SelectQuery(
 _
            "SELECT * FROM Win32_LogicalDisk")

        'output is : SELECT * FROM Win32_LogicalDisk
        Console.WriteLine(s.QueryString)

        s.ClassName = "Win32_Process"

        'output is : SELECT * FROM Win32_Process
        Console.WriteLine(s.QueryString)

    End Function
End Class
using System; 
using System.Management;
 
class Sample 
{ 
    public static void Main(string[]
 args) 
    { 
        SelectQuery s = 
            new SelectQuery("SELECT * FROM Win32_LogicalDisk");

        //output is : SELECT * FROM Win32_LogicalDisk
        Console.WriteLine(s.QueryString);

        s.ClassName = "Win32_Process";

        //output is : SELECT * FROM Win32_Process
        Console.WriteLine(s.QueryString);
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「SelectQuery.ClassName プロパティ」の関連用語

SelectQuery.ClassName プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SelectQuery.ClassName プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS