共用方式為


SPWebCollection.Count property

取得集合中的網站所表示的數目。

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

Syntax

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

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

Property value

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

Implements

ICollection.Count

請參閱

參照

SPWebCollection class

SPWebCollection members

Microsoft.SharePoint namespace