IDispatchImplAttribute クラス

定義

注意事項

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

デュアル インターフェイスとディスパッチ インターフェイスを COM に公開するときに共通言語ランタイムが使用する 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 に設定すると、オブジェクトの型情報を COM の CreateStdDispatch API に渡すことによって、IDispatch実装が提供されます。 属性を InternalImpl に設定すると、 IDispatch の実装は共通言語ランタイムによって提供されます。 属性を SystemDefinedImpl に設定すると、ランタイムは適切な実装を選択できます。 アセンブリで属性を使用する場合、その属性はアセンブリ内で定義されているすべてのクラスに適用されます。 個々のクラスで属性を使用する場合、属性はそのクラスによって公開されるインターフェイスにのみ適用され、アセンブリ レベルの設定をオーバーライドします。

コンストラクター

名前 説明
IDispatchImplAttribute(IDispatchImplType)
古い.

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

IDispatchImplAttribute(Int16)
古い.

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

プロパティ

名前 説明
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)

適用対象

こちらもご覧ください