ManagementBaseObject.SystemProperties Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Yönetim nesnesinin WMI sistem özelliklerinin (örneğin, sınıf adı, sunucu ve ad alanı) koleksiyonunu alır. WMI sistem özellik adları "__" ile başlar.
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
Özellik Değeri
Bir yönetim nesnesinin sistem özelliklerini içeren koleksiyon.
Örnekler
Aşağıdaki örnek, Win32_Process sınıfı için sistem özelliklerinin adını ve değerini görüntülemek için özelliğini kullanırSystemProperties. Win32_Process sınıfı hakkında daha fazla bilgi için Windows Yönetim Araçları belgelerine bakın.
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
Açıklamalar
Özellik Değeri
PropertyDataCollection Yönetim nesnesinin sistem özelliklerini temsil eden bir.
.NET Framework Güvenliği
Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.