Array.IList.Add(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用此方法始终会引发 NotSupportedException 异常。
virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (value As Object) As Integer Implements IList.Add
参数
返回
不支持向数组添加值。 不返回任何值。
实现
例外
IList 具有固定的大小。
注解
通常, IList.Add 实现会将成员添加到集合中。 但是,由于数组具有固定大小 (IsFixedSize 属性始终返回 true) ,因此此方法始终引发 NotSupportedException 异常。
此成员是显式接口成员的实现。 它只能在 Array 实例被强制转换为 IList 接口时使用。