次の方法で共有


Array.IList.Insert メソッド

IList.Insert を実装します。常に NotSupportedException をスローします。

Private Sub Insert( _
   ByVal index As Integer, _   ByVal value As Object _) Implements IList.Insert
[C#]
void IList.Insert(
   intindex,objectvalue);
[C++]
private: void IList::Insert(intindex,Object* value);
[JScript]
private function IList.Insert(
   index : int,value : Object);

パラメータ

  • index
    value を挿入する位置の、インデックス番号。
  • value
    挿入するオブジェクト。

実装

IList.Insert

例外

例外の種類 条件
NotSupportedException 常にスローされます。

解説

Array は固定サイズであるため、要素を追加または削除できません。 SetValue を使用して、既存の要素の値を変更します。

必要条件

プラットフォーム: 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

参照

Array クラス | Array メンバ | System 名前空間 | SetValue