ManagementEntityAttribute クラス
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ManagementEntity 属性は、クラスが WMI プロバイダーを通じて公開される管理情報を提供することを示します。
注: WMI .NET ライブラリは最終的な状態と見なされます。これらのライブラリに影響を与えるセキュリティ以外に関連する問題については、さらなる開発、機能拡張、または更新は利用できません。 MI API は新しい開発すべてに使用する必要があります。
public ref class ManagementEntityAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class ManagementEntityAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type ManagementEntityAttribute = class
inherit Attribute
Public NotInheritable Class ManagementEntityAttribute
Inherits Attribute
- 継承
- 属性
次の例は、ManagementEntity 属性を使用してクラスをマークする方法を示しています。
// Use the ManagementEntity attribute on the class to specify that this // class contains management information that is available from
// provider.
[ManagementEntity(Name = "MortgageCalc")]
public class MortgageCalcWMIProvider
{
}
この属性でマークされたクラスは public である必要があります。
Management |
ManagementEntityAttribute クラスの新しいインスタンスを初期化します。 これはパラメーターなしのコンストラクターです。 |
External |
クラスが、現在のアセンブリの外部で実装されるプロバイダーの WMI クラスを表すかどうかを指定する値を取得または設定します。 |
Name |
WMI クラスの名前を取得または設定します。 |
Singleton |
関連付けられるクラスがシングルトン WMI クラスを表すかどうかを指定します。 |
Type |
派生クラスで実装されると、この Attribute の一意の識別子を取得します。 (継承元 Attribute) |
Equals(Object) |
このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。 (継承元 Attribute) |
Get |
このインスタンスのハッシュ コードを返します。 (継承元 Attribute) |
Get |
現在のインスタンスの Type を取得します。 (継承元 Object) |
Is |
派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。 (継承元 Attribute) |
Match(Object) |
派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (継承元 Attribute) |
Memberwise |
現在の Object の簡易コピーを作成します。 (継承元 Object) |
To |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |
_Attribute. |
一連の名前を対応する一連のディスパッチ識別子に割り当てます。 (継承元 Attribute) |
_Attribute. |
オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。 (継承元 Attribute) |
_Attribute. |
オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。 (継承元 Attribute) |
_Attribute. |
オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。 (継承元 Attribute) |
製品 | バージョン |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。