ManagementQuery.ParseQuery メソッド
アセンブリ: System.Management (system.management.dll 内)



クエリからクラス名プロパティおよび条件プロパティを解析する例を次に示します。
Imports System Imports System.Management Public Class Sample Public Overloads Shared Function _ Main(ByVal args() As String) As Integer Dim query As SelectQuery query = New SelectQuery("SELECT * " & _ "FROM Win32_LogicalDisk " & _ "WHERE FreeSpace < 4000000") ' The query is parsed so that the className property ' is Win32_LogicalDisk and the condition property ' is FreeSpace < 4000000 End Function End Class
using System; using System.Management; public class Sample { public static void Main() { SelectQuery query = new SelectQuery("SELECT * " + "FROM Win32_LogicalDisk " + "WHERE FreeSpace < 4000000"); // The query is parsed so that the className property // is Win32_LogicalDisk and the condition property // is FreeSpace < 4000000 } }


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からManagementQuery.ParseQuery メソッドを検索する場合は、下記のリンクをクリックしてください。

- ManagementQuery.ParseQuery メソッドのページへのリンク