次の方法で共有


MarshalAsAttribute.SizeConst フィールド

固定長配列の要素の数、またはインポートする文字列の文字数 (バイト数ではない) を示します。

Public SizeConst As Integer
[C#]
public int SizeConst;
[C++]
public: int SizeConst;
[JScript]
public var SizeConst : int;

解説

このフィールドは、 System.Runtime.InteropServices.UnmanagedType 列挙体の ByValArray メンバおよび ByValTStr のメンバでは必須です。詳細については、「 配列に対する既定のマーシャリング 」を参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

MarshalAsAttribute クラス | MarshalAsAttribute メンバ | System.Runtime.InteropServices 名前空間 | UnmanagedType