Share via


SPContentTypeCollection.Item property (SPContentTypeId)

Gets the content type that has the specified content type identifier (ID).

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

Syntax

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

value = instance(id)
public SPContentType this[
    SPContentTypeId id
] { get; }

Parameters

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

Content Type IDs

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy