要素の数を取得します。このプロパティは読み取り専用です。
Public ReadOnly Property ElementCount As Integer
[C#]
public int ElementCount {get;}
[C++]
public: __property int get_ElementCount();
[JScript]
public function get ElementCount() : int;
プロパティ値
要素数を示す整数。
例外
例外の種類 | 条件 |
---|---|
ArgumentException | 引数がアンマネージ要素数ではありません。 |
解説
ElementCount が存在するのは、 NativeTypeFixedArray があるときだけです。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
UnmanagedMarshal クラス | UnmanagedMarshal メンバ | System.Reflection.Emit 名前空間