IDispatchImplAttribute クラス

定義

注意事項

This attribute is deprecated and will be removed in a future version.

COM にデュアル インターフェイスと Dispinterface を公開する場合に、共通言語ランタイムが使用する IDispatch 実装を指定します。

public ref class IDispatchImplAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)]
public sealed class IDispatchImplAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)]
[System.Obsolete("This attribute is deprecated and will be removed in a future version.", false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IDispatchImplAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)>]
type IDispatchImplAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, Inherited=false)>]
[<System.Obsolete("This attribute is deprecated and will be removed in a future version.", false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IDispatchImplAttribute = class
    inherit Attribute
Public NotInheritable Class IDispatchImplAttribute
Inherits Attribute
継承
IDispatchImplAttribute
属性

注釈

この属性は、クラスまたはアセンブリに適用できます。

この属性は、明示的な実装が必要な場合にのみ設定する必要があります。 属性を に CompatibleImpl設定すると、オブジェクトの IDispatch 型情報を COM の API に渡すことによって実装が CreateStdDispatch 提供されます。 属性を に InternalImpl設定すると、 IDispatch 実装は共通言語ランタイムによって提供されます。 属性を に SystemDefinedImpl 設定すると、ランタイムは適切な実装を選択できます。 アセンブリで 属性を使用する場合、その属性はアセンブリ内で定義されているすべてのクラスに適用されます。 属性を個々のクラスで使用する場合、属性はそのクラスによって公開されるインターフェイスにのみ適用され、アセンブリ レベルの設定がオーバーライドされます。

コンストラクター

IDispatchImplAttribute(IDispatchImplType)
古い.

IDispatchImplAttribute クラスの新しいインスタンスを、指定した IDispatchImplType 値を使用して初期化します。

IDispatchImplAttribute(Int16)
古い.

IDispatchImplAttribute クラスの新しいインスタンスを、指定した IDispatchImplType 値を使用して初期化します。

プロパティ

TypeId
古い.

派生クラスで実装されると、この Attribute の一意の識別子を取得します。

(継承元 Attribute)
Value
古い.

クラスが使用する IDispatchImplType 値を取得します。

メソッド

Equals(Object)
古い.

このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()
古い.

このインスタンスのハッシュ コードを返します。

(継承元 Attribute)
GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()
古い.

派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)
古い.

派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()
古い.

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()
古い.

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)
古い.

一連の名前を対応する一連のディスパッチ識別子に割り当てます。

(継承元 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)
古い.

オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。

(継承元 Attribute)
_Attribute.GetTypeInfoCount(UInt32)
古い.

オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。

(継承元 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)
古い.

オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。

(継承元 Attribute)

適用対象

こちらもご覧ください