StructLayoutAttribute コンストラクター

定義

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

オーバーロード

StructLayoutAttribute(Int16)

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

StructLayoutAttribute(LayoutKind)

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

StructLayoutAttribute(Int16)

ソース:
StructLayoutAttribute.cs
ソース:
StructLayoutAttribute.cs
ソース:
StructLayoutAttribute.cs

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

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

パラメーター

layoutKind
Int16

クラスまたは構造体を整列する方法を指定する LayoutKind 値の 1 つを表す 16 ビット整数。

注釈

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

こちらもご覧ください

適用対象

StructLayoutAttribute(LayoutKind)

ソース:
StructLayoutAttribute.cs
ソース:
StructLayoutAttribute.cs
ソース:
StructLayoutAttribute.cs

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

public:
 StructLayoutAttribute(System::Runtime::InteropServices::LayoutKind layoutKind);
public StructLayoutAttribute (System.Runtime.InteropServices.LayoutKind layoutKind);
new System.Runtime.InteropServices.StructLayoutAttribute : System.Runtime.InteropServices.LayoutKind -> System.Runtime.InteropServices.StructLayoutAttribute
Public Sub New (layoutKind As LayoutKind)

パラメーター

layoutKind
LayoutKind

クラスまたは構造体を整列させる方法を指定する列挙値の 1 つ。

注釈

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

こちらもご覧ください

適用対象