Partilhar 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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

value = instance.Item(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