ManagementBaseObject.SystemProperties プロパティ
アセンブリ: System.Management (system.management.dll 内)
構文Dim instance As ManagementBaseObject Dim value As PropertyDataCollection value = instance.SystemProperties
public: virtual property PropertyDataCollection^ SystemProperties { PropertyDataCollection^ get (); }
管理オブジェクトのシステム プロパティを格納している PropertyDataCollection を返します。
解説
使用例SystemProperties プロパティを使用して、Win32_Process クラスのシステム プロパティの名前および値を表示する例を次に示します。Win32_Process クラスの詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library/ja) で Windows Management Instrumentation に関するドキュメントを参照してください。
Imports System Imports System.Management Class Sample Public Overloads Shared Function _ Main(ByVal args() As String) As Integer ' Get the WMI class Dim processClass As New ManagementClass( _ "Win32_Process") ' Get the system properties for the class Dim properties As PropertyDataCollection properties = processClass.SystemProperties For Each p As PropertyData In properties Console.WriteLine(p.Name) Console.WriteLine(p.Value) Console.WriteLine() Next End Function End Class
using System; using System.Management; public class Sample { public static void Main() { // Get the WMI class ManagementClass processClass = new ManagementClass("Win32_Process"); // Get the system properties for the class PropertyDataCollection properties = processClass.SystemProperties; // display the properties foreach (PropertyData p in properties) { Console.WriteLine(p.Name); Console.WriteLine(p.Value); Console.WriteLine(); } } }
.NET Framework のセキュリティ
プラットフォーム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に収録されているすべての辞書からManagementBaseObject.SystemProperties プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からManagementBaseObject.SystemProperties プロパティ
を検索
- ManagementBaseObject.SystemProperties プロパティのページへのリンク