SPContentTypeCollection.Count property

Gets the total number of content types in the collection.

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

Syntax

'Declaration
Public Overrides ReadOnly Property Count As Integer
    Get
'Usage
Dim instance As SPContentTypeCollection
Dim value As Integer

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

Property value

Type: System.Int32
The total number of content types in the collection.

Implements

ICollection.Count

See also

Reference

SPContentTypeCollection class

SPContentTypeCollection members

Microsoft.SharePoint namespace

Other resources

Introduction to Content Types

Site and List Content Types