次の方法で共有


ManagementScope.Path プロパティ

ManagementScope のパスを取得または設定します。

Public Property Path As ManagementPath
[C#]
public ManagementPath Path {get; set;}
[C++]
public: __property ManagementPath* get_Path();public: __property void set_Path(ManagementPath*);
[JScript]
public function get Path() : ManagementPath;public function set Path(ManagementPath);

プロパティ値

サーバーと名前空間のパスを格納している ManagementPath

使用例

 
ManagementScope s = new ManagementScope();
s.Path = new ManagementPath("root\\MyApp");
   
[Visual Basic] 
Dim s As New ManagementScope()
s.Path = New ManagementPath("root\MyApp")
   

[C++, JScript] C++ および JScript のサンプルはありません。Visual Basic および C# のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

ManagementScope クラス | ManagementScope メンバ | System.Management 名前空間