共用方式為


SPPersistedObjectCollection<T>.IsEmpty property

取得 Boolean 值,表示集合是否含有任何物件。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property IsEmpty As Boolean
    Get
'用途
Dim instance As SPPersistedObjectCollection
Dim value As Boolean

value = instance.IsEmpty
public bool IsEmpty { get; }

Property value

Type: System.Boolean
true如果集合是空的。否則,請false。

請參閱

參照

SPPersistedObjectCollection<T> class

SPPersistedObjectCollection<T> members

Microsoft.SharePoint.Administration namespace