ComSourceInterfacesAttribute クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ComSourceInterfacesAttribute クラスの意味・解説 

ComSourceInterfacesAttribute クラス

属性付きクラスCOM イベント ソースとして公開されるインターフェイスリスト識別します。

名前空間: System.Runtime.InteropServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _
Public NotInheritable Class
 ComSourceInterfacesAttribute
    Inherits Attribute
Dim instance As ComSourceInterfacesAttribute
[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
/** @attribute ComVisibleAttribute(true) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 */ 
public final class ComSourceInterfacesAttribute
 extends Attribute
ComVisibleAttribute(true) 
AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 
public final class ComSourceInterfacesAttribute
 extends Attribute
解説解説
使用例使用例

名前空間イベント シンク インターフェイス渡して 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{};

import System.Runtime.InteropServices.*;

/** @attribute ComSourceInterfacesAttribute("ButtonEventsLib.ButtonEvents,"
 
    + " ButtonEventsLib")
 */
public class Baz
{
    //Insert code here.
} //Baz
import System.Runtime.InteropServices;

ComSourceInterfacesAttribute("ButtonEventsLib.ButtonEvents, ButtonEventsLib")
 public class Baz 
{
   //Insert code here.
}
継承階層継承階層
System.Object
   System.Attribute
    System.Runtime.InteropServices.ComSourceInterfacesAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ComSourceInterfacesAttribute メンバ
System.Runtime.InteropServices 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ComSourceInterfacesAttribute クラス」の関連用語

ComSourceInterfacesAttribute クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ComSourceInterfacesAttribute クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS