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"); } }
.NET Framework のセキュリティ
プラットフォーム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 プロパティ
を検索
- ManagementObject.Scope プロパティのページへのリンク