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

Dim instance As ManagementObject Dim value As ManagementScope value = instance.Scope instance.Scope = value
public: property ManagementScope^ Scope { ManagementScope^ get (); void set (ManagementScope^ value); }
/** @property */ public ManagementScope get_Scope () /** @property */ public void set_Scope (ManagementScope value)
ManagementScope。

特定の名前空間で、管理オブジェクトを WMI オブジェクトにバインドした後にプロパティを変更した場合、元の WMI オブジェクトは解放されます。これにより、管理オブジェクトは、新しいパス プロパティとスコープ値が指定する新しいオブジェクトに再バインドされます。
再バインディングは、最も負荷の少ない方法で実行されます。つまり、要求された値が、管理オブジェクトを WMI オブジェクトにバインドすることを要求したときにだけ実行されます。再バインドを試行する前に複数のプロパティを変更できます。たとえば、スコープとパスのプロパティを同時に変更できます。
.NET Framework のセキュリティ
既定の名前空間を使用して ManagementObject クラスの新しいインスタンスを初期化し、ManagementObject のスコープを変更する例を次に示します。
Imports System Imports System.Management Public Class Sample Public Overloads Shared Function Main( _ ByVal args() As String) As Integer ' Create the object with the default namespace ' (root\cimv2) Dim o As New ManagementObject ' Change the scope (=namespace) of this object ' to the one specified. o.Scope = New ManagementScope("root\CIMV2") Return 0 End Function End Class
using System; using System.Management; public class Sample { public static void Main() { // Create the object with the default namespace // (root\cimv2) ManagementObject o = new ManagementObject(); // Change the scope (=namespace) of this object // to the one specified. o.Scope = new ManagementScope("root\\CIMV2"); } }


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.Scope プロパティを検索する場合は、下記のリンクをクリックしてください。

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