Share via


SWbemObjectEx.SystemProperties_ property

SWbemObjectEx オブジェクトの SystemProperties_ プロパティは、このオブジェクトに適用される WMI System Properties のコレクションを含む SWbemPropertySet オブジェクトを返します。

この構文の説明については、「スクリプト API のドキュメント規則」を参照してください。

このプロパティは読み取り/書き込み可能です。

構文

SWbemObjectEx.SystemProperties_ As Object

プロパティ値

次のコード サンプルでは、Win32_Process クラスのプロパティ値を取得します。

Set objWmi = GetObject ("winmgmts:root\cimv2")
Set objClass = objWmi.Get("Win32_Process")

' SWbemObjectEx.SystemProperties_ returns 
' an SWbemPropertySet object that contains the collection
' of sytem properties for Win32_Process class

For Each objProperty In objClass.SystemProperties_

    WScript.Echo vbCrLf & objProperty.Name & ":"

    ' Have to take into account that
    ' __Derivation is an array

    If Not objProperty.IsArray Then
        WScript.Echo vbTab & objProperty.Value
    Else
        For Each strValue In objProperty.Value
            WScript.Echo vbTab & strValue
        Next
    End If

Next

要件

要件
サポートされている最小のクライアント
Windows Vista
サポートされている最小のサーバー
Windows Server 2008
Header
Wbemdisp.h
タイプ ライブラリ
Wbemdisp.tlb
[DLL]
Wbemdisp.dll
CLSID
CLSID_SWbemObjectEx
IID
IID_ISWbemObjectEx

関連項目

SWbemObjectEx