Partager via


SPContentTypeCollection.Item - Propriété (Int32)

Obtient le type de contenu à l'index spécifié dans la collection.

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPContentType
    Get
'Utilisation
Dim instance As SPContentTypeCollection
Dim index As Integer
Dim value As SPContentType

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

Paramètres

  • index
    Type : System.Int32

    Index du type de contenu dans la collection.

Valeur de propriété

Type : Microsoft.SharePoint.SPContentType
Un SPContentType qui représente le type de contenu spécifié.

Voir aussi

Référence

SPContentTypeCollection classe

SPContentTypeCollection - Membres

Item - Surcharge

Microsoft.SharePoint - Espace de noms

Autres ressources

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy