共用方式為


IClrCollectionAccessor.AddStandalone(Object, Object) 方法

定義

將值加入至傳遞的集合,除非它已經包含在集合中。

public bool AddStandalone (object collection, object value);
abstract member AddStandalone : obj * obj -> bool
Public Function AddStandalone (collection As Object, value As Object) As Boolean

參數

collection
Object

集合。

value
Object

要加入的值。

傳回

true 如果已加入值,則為 ; false 如果已經在集合中,則為 。

適用於