ManagementBaseObject.SystemProperties 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取管理对象的 WMI 系统属性的集合, (例如类名、服务器和命名空间) 。 WMI 系统属性名以“__”开头。
public:
 virtual property System::Management::PropertyDataCollection ^ SystemProperties { System::Management::PropertyDataCollection ^ get(); };
	public virtual System.Management.PropertyDataCollection SystemProperties { get; }
	member this.SystemProperties : System.Management.PropertyDataCollection
	Public Overridable ReadOnly Property SystemProperties As PropertyDataCollection
	属性值
包含管理对象的系统属性的集合。
示例
以下示例使用 SystemProperties 属性显示 Win32_Process 类的系统属性的名称和值。 有关 Win32_Process 类的详细信息,请参阅 Windows Management Instrumentation 文档。
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();
        }
    }
}
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
	注解
属性值
一个 PropertyDataCollection ,它表示管理对象的系统属性。
.NET Framework 安全性
对直接调用方的完全信任。 此成员不能由部分信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码中的库。