MarshalAsAttribute コンストラクター

定義

MarshalAsAttribute クラスの新しいインスタンスを初期化します。

オーバーロード

MarshalAsAttribute(Int16)

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

MarshalAsAttribute(UnmanagedType)

指定した MarshalAsAttribute 列挙体メンバーを使用して、UnmanagedType クラスの新しいインスタンスを初期化します。

MarshalAsAttribute(Int16)

ソース:
MarshalAsAttribute.cs
ソース:
MarshalAsAttribute.cs
ソース:
MarshalAsAttribute.cs

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

public:
 MarshalAsAttribute(short unmanagedType);
public MarshalAsAttribute (short unmanagedType);
new System.Runtime.InteropServices.MarshalAsAttribute : int16 -> System.Runtime.InteropServices.MarshalAsAttribute
Public Sub New (unmanagedType As Short)

パラメーター

unmanagedType
Int16

マーシャリング後のデータの値。

注釈

このコンストラクターは、各 UnmanagedType 列挙メンバーを表す基になる 16 ビット符号付き整数を受け取ります。 Tlbimp.exe (タイプ ライブラリ インポーター) は、このコンストラクターを使用します。

こちらもご覧ください

適用対象

MarshalAsAttribute(UnmanagedType)

ソース:
MarshalAsAttribute.cs
ソース:
MarshalAsAttribute.cs
ソース:
MarshalAsAttribute.cs

指定した MarshalAsAttribute 列挙体メンバーを使用して、UnmanagedType クラスの新しいインスタンスを初期化します。

public:
 MarshalAsAttribute(System::Runtime::InteropServices::UnmanagedType unmanagedType);
public MarshalAsAttribute (System.Runtime.InteropServices.UnmanagedType unmanagedType);
new System.Runtime.InteropServices.MarshalAsAttribute : System.Runtime.InteropServices.UnmanagedType -> System.Runtime.InteropServices.MarshalAsAttribute
Public Sub New (unmanagedType As UnmanagedType)

パラメーター

unmanagedType
UnmanagedType

マーシャリング後のデータの値。

注釈

エラーが発生しにくい読み取り可能なコードの場合は、常にこのコンストラクターを使用します。

こちらもご覧ください

適用対象