ManagementObject.Path プロパティ
アセンブリ: System.Management (system.management.dll 内)

Dim instance As ManagementObject Dim value As ManagementPath value = instance.Path instance.Path = value
public: virtual property ManagementPath^ Path { ManagementPath^ get (); void set (ManagementPath^ value); }
/** @property */ public ManagementPath get_Path () /** @property */ public void set_Path (ManagementPath value)
オブジェクトのパスを表す ManagementPath。

特定の名前空間で、管理オブジェクトを WMI オブジェクトにバインドした後にプロパティを変更した場合、元の WMI オブジェクトは解放されます。これにより、管理オブジェクトは、新しいパス プロパティとスコープ値が指定する新しいオブジェクトに再バインドされます。
再バインディングは、最も負荷の少ない方法で実行されます。つまり、要求された値が、管理オブジェクトを WMI オブジェクトにバインドすることを要求したときにだけ実行されます。再バインドを試行する前に複数のプロパティを変更できます。たとえば、スコープとパスのプロパティを同時に変更できます。
.NET Framework のセキュリティ
既定の名前空間を使用して ManagementObject クラスの新しいインスタンスを初期化し、ManagementObject の WMI パスを変更する例を次に示します。
Imports System Imports System.Management Public Class Sample Public Overloads Shared Function Main( _ ByVal args() As String) As Integer Dim o As New ManagementObject ' Specify the WMI path to which ' this object should be bound to o.Path = New ManagementPath( _ "Win32_Process.Name=""calc.exe""") Return 0 End Function End Class


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に収録されているすべての辞書からManagementObject.Path プロパティを検索する場合は、下記のリンクをクリックしてください。

- ManagementObject.Path プロパティのページへのリンク