ManagementObject.Path プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ManagementObject.Path プロパティの意味・解説 

ManagementObject.Path プロパティ

オブジェクトWMI パス取得または設定します

名前空間: System.Management
アセンブリ: System.Management (system.management.dll 内)
構文構文

Public Overridable Property
 Path As ManagementPath
Dim instance As ManagementObject
Dim value As ManagementPath

value = instance.Path

instance.Path = value
public virtual ManagementPath Path { get; set;
 }
public:
virtual property ManagementPath^ Path {
    ManagementPath^ get ();
    void set (ManagementPath^ value);
}
/** @property */
public ManagementPath get_Path ()

/** @property */
public void set_Path (ManagementPath value)
public function get Path
 () : ManagementPath

public function set Path
 (value : ManagementPath)

プロパティ
オブジェクトパスを表す ManagementPath。

解説解説
使用例使用例

既定名前空間使用して ManagementObject クラス新しインスタンス初期化しManagementObjectWMI パス変更する例を次に示します

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
using System;
using System.Management;
public class Sample 
{
    public static void Main()
 
    {
        ManagementObject o = new ManagementObject(); 

        // Specify the WMI path to which 
        // this object should be bound to
        o.Path = new ManagementPath(
            "Win32_Process.Name='calc.exe'");
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ManagementObject.Path プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ManagementObject.Path プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS