共用方式為


SPSiteCollection.Count property

集合中取得SPSite物件的數目。

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

Syntax

'宣告
Public Overrides ReadOnly Property Count As Integer
    Get
'用途
Dim instance As SPSiteCollection
Dim value As Integer

value = instance.Count
public override int Count { get; }

Property value

Type: System.Int32
32 位元整數,指出網站集合數目。

Implements

ICollection.Count
ICollection.Count

請參閱

參照

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace