Share via


SPContentTypeCollection.Item property (Int32)

Gets the content type at the specified index in the collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPContentType
    Get
'Usage
Dim instance As SPContentTypeCollection
Dim index As Integer
Dim value As SPContentType

value = instance(index)
public SPContentType this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    The index of the content type within the collection.

Property value

Type: Microsoft.SharePoint.SPContentType
An SPContentType that represents the specified content type.

See also

Reference

SPContentTypeCollection class

SPContentTypeCollection members

Item overload

Microsoft.SharePoint namespace

Other resources

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy