ClassInterfaceAttribute コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ClassInterfaceAttribute クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| ClassInterfaceAttribute(Int16) |
指定したClassInterfaceAttribute列挙値を使用して、ClassInterfaceType クラスの新しいインスタンスを初期化します。 |
| ClassInterfaceAttribute(ClassInterfaceType) |
指定したClassInterfaceAttribute列挙メンバーを使用して、ClassInterfaceType クラスの新しいインスタンスを初期化します。 |
ClassInterfaceAttribute(Int16)
指定したClassInterfaceAttribute列挙値を使用して、ClassInterfaceType クラスの新しいインスタンスを初期化します。
public:
ClassInterfaceAttribute(short classInterfaceType);
public ClassInterfaceAttribute(short classInterfaceType);
new System.Runtime.InteropServices.ClassInterfaceAttribute : int16 -> System.Runtime.InteropServices.ClassInterfaceAttribute
Public Sub New (classInterfaceType As Short)
パラメーター
- classInterfaceType
- Int16
クラスに対して生成されるインターフェイスの型について説明します。
注釈
このコンストラクターは、各 ClassInterfaceType 列挙メンバーを表す基になる 16 ビット符号付き整数を受け取ります。 Tlbimp.exe (タイプ ライブラリ インポーター) はこのコンストラクターを使用します。
こちらもご覧ください
適用対象
ClassInterfaceAttribute(ClassInterfaceType)
指定したClassInterfaceAttribute列挙メンバーを使用して、ClassInterfaceType クラスの新しいインスタンスを初期化します。
public:
ClassInterfaceAttribute(System::Runtime::InteropServices::ClassInterfaceType classInterfaceType);
public ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType classInterfaceType);
new System.Runtime.InteropServices.ClassInterfaceAttribute : System.Runtime.InteropServices.ClassInterfaceType -> System.Runtime.InteropServices.ClassInterfaceAttribute
Public Sub New (classInterfaceType As ClassInterfaceType)
パラメーター
- classInterfaceType
- ClassInterfaceType
クラスに対して生成されるインターフェイスの型を表す ClassInterfaceType 値の 1 つ。
注釈
エラーの発生が少ない読み取り可能なコードの場合は、常にこのコンストラクターを使用します。