共用方式為


SPContentTypeCollection.Count property

取得集合中的內容類型的總數。

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

Syntax

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

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

Property value

Type: System.Int32
集合中的內容類型的總數。

Implements

ICollection.Count

請參閱

參照

SPContentTypeCollection class

SPContentTypeCollection members

Microsoft.SharePoint namespace

其他資源

Introduction to Content Types

Site and List Content Types