次の方法で共有


IList.Add メソッド

クラスによって実装された場合は、 IList に項目を追加します。

Function Add( _
   ByVal value As Object _) As Integer
[C#]
int Add(
   objectvalue);
[C++]
int Add(
   Object* value);
[JScript]
function Add(
   value : Object) : int;

パラメータ

戻り値

新しい要素が挿入された位置。

例外

例外の種類 条件
NotSupportedException IList が読み取り専用です。

または

IList が固定サイズです。

必要条件

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

参照

IList インターフェイス | IList メンバ | System.Collections 名前空間