IDispatchImplAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Class, Inherited:=False)> _ <ObsoleteAttribute("This attribute is deprecated and will be removed in a future version.", False)> _ Public NotInheritable Class IDispatchImplAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class, Inherited=false)] [ObsoleteAttribute("This attribute is deprecated and will be removed in a future version.", false)] public sealed class IDispatchImplAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Class, Inherited=false)] [ObsoleteAttribute(L"This attribute is deprecated and will be removed in a future version.", false)] public ref class IDispatchImplAttribute sealed : public Attribute
/** @attribute ComVisibleAttribute(true) */ /** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class, Inherited=false) */ /** @attribute ObsoleteAttribute("This attribute is deprecated and will be removed in a future version.", false) */ public final class IDispatchImplAttribute extends Attribute

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

IDispatchImplAttribute を適用し、共通言語ランタイムによって提供された IDispatch 実装を選択する例を次に示します。
Imports System Imports System.Runtime.InteropServices ' by default all classes in this assembly will use COM implementaion <Assembly: IDispatchImpl(IDispatchImplType.CompatibleImpl)> Module MyNamespace ' But this class will use runtime implementaion <IDispatchImpl(IDispatchImplType.InternalImpl)> _ Public Class c ' End Class End Module
using System; using System.Runtime.InteropServices; // by default all classes in this assembly will use COM implementaion [assembly:IDispatchImpl(IDispatchImplType.CompatibleImpl)] namespace MyNamespace { // But this class will use runtime implementaion [IDispatchImpl(IDispatchImplType.InternalImpl)] class MyClass { // } }
using namespace System; using namespace System::Runtime::InteropServices; // by default all classes in this assembly will use COM implementaion // // But this class will use runtime implementaion [assembly:IDispatchImpl(IDispatchImplType::CompatibleImpl)]; [IDispatchImpl(IDispatchImplType::InternalImpl)] ref class MyClass{};
import System.*; import System.Runtime.InteropServices.*; // by default all classes in this assembly will use COM implementaion /** @assembly IDispatchImpl(IDispatchImplType.CompatibleImpl) */ // But this class will use runtime implementaion /** @attribute IDispatchImpl(IDispatchImplType.InternalImpl) */ class MyClass { // } //MyClass

System.Attribute
System.Runtime.InteropServices.IDispatchImplAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


IDispatchImplAttribute コンストラクタ (IDispatchImplType)
アセンブリ: mscorlib (mscorlib.dll 内)



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


IDispatchImplAttribute コンストラクタ

名前 | 説明 |
---|---|
IDispatchImplAttribute (IDispatchImplType) | IDispatchImplAttribute クラスの新しいインスタンスを、指定した IDispatchImplType 値を使用して初期化します。 |
IDispatchImplAttribute (Int16) | IDispatchImplAttribute クラスの新しいインスタンスを、指定した IDispatchImplType 値を使用して初期化します。 |

IDispatchImplAttribute コンストラクタ (Int16)
アセンブリ: mscorlib (mscorlib.dll 内)


このコンストラクタは、IDispatchImplType 列挙体の各メンバを表す、基になる 16 ビット符号付き整数値を受け取ります。タイプ ライブラリ インポータ (TlbImp.exe) は、このコンストラクタを使用して、value が表す IDispatchImplType 値への typeref の生成を防止してから、そのトークンでシグネチャを構築します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


IDispatchImplAttribute プロパティ

名前 | 説明 | |
---|---|---|
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |
![]() | Value | クラスが使用する IDispatchImplType 値を取得します。 |

IDispatchImplAttribute メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

IDispatchImplAttribute メンバ
COM にデュアル インターフェイスと Dispinterface を公開する場合に、共通言語ランタイムが使用する IDispatch 実装を指定します。
IDispatchImplAttribute データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |
![]() | Value | クラスが使用する IDispatchImplType 値を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からIDispatchImplAttributeを検索する場合は、下記のリンクをクリックしてください。

- IDispatchImplAttributeのページへのリンク