StructLayoutAttribute コンストラクター

定義

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

オーバーロード

名前 説明
StructLayoutAttribute(Int16)

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

StructLayoutAttribute(LayoutKind)

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

StructLayoutAttribute(Int16)

ソース:
StructLayoutAttribute.cs
ソース:
StructLayoutAttribute.cs
ソース:
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 値のいずれかを表す 16 ビット整数。

注釈

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

こちらもご覧ください

適用対象

StructLayoutAttribute(LayoutKind)

ソース:
StructLayoutAttribute.cs
ソース:
StructLayoutAttribute.cs
ソース:
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 つ。

注釈

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

こちらもご覧ください

適用対象