SPPersistedChildCollection<T>.Add method
會將物件新增至集合。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Function Add ( _
newObj As T _
) As T
'用途
Dim instance As SPPersistedChildCollection
Dim newObj As T
Dim returnValue As T
returnValue = instance.Add(newObj)
public virtual T Add(
T newObj
)
參數
newObj
Type: T要新增至集合中的物件。
傳回值
Type: T
已新增的物件。
Exceptions
Exception | Condition |
---|---|
ArgumentException | 集合中已經存在的物件。 |
請參閱
參照
SPPersistedChildCollection<T> class