ComSourceInterfacesAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文<ComVisibleAttribute(True)> _ <AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _ Public NotInheritable Class ComSourceInterfacesAttribute Inherits Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)] public sealed class ComSourceInterfacesAttribute : Attribute
[ComVisibleAttribute(true)] [AttributeUsageAttribute(AttributeTargets::Class, Inherited=true)] public ref class ComSourceInterfacesAttribute sealed : public Attribute
 解説
解説この属性をマネージ クラスに適用すると、COM コネクション ポイントとしてクラスが公開しているイベント インターフェイスを識別できます。イベント インターフェイスは、クラスのイベント メンバに割り当てられるメソッドを格納しています。クラス イベント名とインターフェイス メソッド名は同じにする必要があります。この属性は、ソース インターフェイスの型を適切なコンストラクタに渡すことによって、クラスあたり最大 4 つのソース インターフェイスを受け入れることができます。コンストラクタは、1 つから 4 つの間の型引数を受け取ります。4 つを超えるソース インターフェイスを公開する必要があるクラスでは、文字列バージョンのコンストラクタを使用できます。.NET イベントを COM クライアントに公開する方法の詳細については、「方法 : COM シンクによって処理されるイベントを発生させる」を参照してください。
 使用例
使用例名前空間とイベント シンク インターフェイスを渡して ComSourceInterfacesAttribute を適用することにより、イベント シンク インターフェイスをクラスに接続する方法を次の例に示します。
Imports System.Runtime.InteropServices <ComSourceInterfacesAttribute("ButtonEventsLib.ButtonEvents, ButtonEventsLib")> _ public Class Baz 'Insert code here. End Class
using System.Runtime.InteropServices; [ComSourceInterfacesAttribute("ButtonEventsLib.ButtonEvents, ButtonEventsLib")] public class Baz { //Insert code here. }
using namespace System::Runtime::InteropServices; [ComSourceInterfacesAttribute("ButtonEventsLib.ButtonEvents, ButtonEventsLib")] public ref class Baz{};
 継承階層
継承階層System.Attribute
System.Runtime.InteropServices.ComSourceInterfacesAttribute
 スレッド セーフ
スレッド セーフ プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照ComSourceInterfacesAttribute コンストラクタ (Type, Type, Type, Type)
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文Public Sub New ( _ sourceInterface1 As Type, _ sourceInterface2 As Type, _ sourceInterface3 As Type, _ sourceInterface4 As Type _ )
Dim sourceInterface1 As Type Dim sourceInterface2 As Type Dim sourceInterface3 As Type Dim sourceInterface4 As Type Dim instance As New ComSourceInterfacesAttribute(sourceInterface1, sourceInterface2, sourceInterface3, sourceInterface4)
public ComSourceInterfacesAttribute ( Type sourceInterface1, Type sourceInterface2, Type sourceInterface3, Type sourceInterface4 )
public: ComSourceInterfacesAttribute ( Type^ sourceInterface1, Type^ sourceInterface2, Type^ sourceInterface3, Type^ sourceInterface4 )
public ComSourceInterfacesAttribute ( Type sourceInterface1, Type sourceInterface2, Type sourceInterface3, Type sourceInterface4 )
public function ComSourceInterfacesAttribute ( sourceInterface1 : Type, sourceInterface2 : Type, sourceInterface3 : Type, sourceInterface4 : Type )
 解説
解説 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照ComSourceInterfacesAttribute コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文 解説
解説 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照ComSourceInterfacesAttribute コンストラクタ (Type)
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文 解説
解説 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照ComSourceInterfacesAttribute コンストラクタ (Type, Type, Type)
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文Public Sub New ( _ sourceInterface1 As Type, _ sourceInterface2 As Type, _ sourceInterface3 As Type _ )
Dim sourceInterface1 As Type Dim sourceInterface2 As Type Dim sourceInterface3 As Type Dim instance As New ComSourceInterfacesAttribute(sourceInterface1, sourceInterface2, sourceInterface3)
public ComSourceInterfacesAttribute ( Type sourceInterface1, Type sourceInterface2, Type sourceInterface3 )
public: ComSourceInterfacesAttribute ( Type^ sourceInterface1, Type^ sourceInterface2, Type^ sourceInterface3 )
public ComSourceInterfacesAttribute ( Type sourceInterface1, Type sourceInterface2, Type sourceInterface3 )
public function ComSourceInterfacesAttribute ( sourceInterface1 : Type, sourceInterface2 : Type, sourceInterface3 : Type )
 解説
解説 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照ComSourceInterfacesAttribute コンストラクタ (Type, Type)
アセンブリ: mscorlib (mscorlib.dll 内)
 構文
構文Dim sourceInterface1 As Type Dim sourceInterface2 As Type Dim instance As New ComSourceInterfacesAttribute(sourceInterface1, sourceInterface2)
 解説
解説 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照ComSourceInterfacesAttribute コンストラクタ
 オーバーロードの一覧
オーバーロードの一覧| 名前 | 説明 | 
|---|---|
| ComSourceInterfacesAttribute (String) | イベント ソース インターフェイスの名前を指定して、ComSourceInterfacesAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 | 
| ComSourceInterfacesAttribute (Type) | ソース インターフェイスとして使用する型を指定して、ComSourceInterfacesAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 | 
| ComSourceInterfacesAttribute (Type, Type) | ソース インターフェイスとして使用する型を指定して、ComSourceInterfacesAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 | 
| ComSourceInterfacesAttribute (Type, Type, Type) | ソース インターフェイスとして使用する型を指定して、ComSourceInterfacesAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 | 
| ComSourceInterfacesAttribute (Type, Type, Type, Type) | ソース インターフェイスとして使用する型を指定して、ComSourceInterfacesAttribute クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 | 
 参照
参照ComSourceInterfacesAttribute プロパティ
 パブリック プロパティ
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| .gif)  | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) | 
| .gif)  | Value | イベント ソース インターフェイスの完全限定名を取得します。 | 
 参照
参照ComSourceInterfacesAttribute メソッド
 パブリック メソッド
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| .gif)  | Equals | オーバーロードされます。 ( Attribute から継承されます。) | 
| .gif)  | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) | 
| .gif)  | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) | 
| .gif)  | GetHashCode | このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。) | 
| .gif)  | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) | 
| .gif)  | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。) | 
| .gif)  | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) | 
| .gif)  | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) | 
| .gif)  | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) | 
| .gif)  | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) | 
 参照
参照ComSourceInterfacesAttribute メンバ
属性付きクラスの COM イベント ソースとして公開されるインターフェイスのリストを識別します。
ComSourceInterfacesAttribute データ型で公開されるメンバを以下の表に示します。
 パブリック コンストラクタ
パブリック コンストラクタ パブリック プロパティ
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| .gif)  | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) | 
| .gif)  | Value | イベント ソース インターフェイスの完全限定名を取得します。 | 
 パブリック メソッド
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| .gif)  | Equals | オーバーロードされます。 ( Attribute から継承されます。) | 
| .gif)  | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) | 
| .gif)  | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) | 
| .gif)  | GetHashCode | このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。) | 
| .gif)  | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) | 
| .gif)  | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。) | 
| .gif)  | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) | 
| .gif)  | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) | 
| .gif)  | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) | 
| .gif)  | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) | 
 参照
参照Weblioに収録されているすべての辞書からComSourceInterfacesAttributeを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からComSourceInterfacesAttribute
                    を検索
                     全ての辞書からComSourceInterfacesAttribute
                    を検索
                - ComSourceInterfacesAttributeのページへのリンク

 
                             
                    


