Share via


SPList.GetDirectChildContentType - Méthode

Returns the content type identifier (ID) for the content type that is the direct child of the specified content type.

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

Syntaxe

'Déclaration
Public Function GetDirectChildContentType ( _
    contentTypeId As SPContentTypeId _
) As SPContentTypeId
'Utilisation
Dim instance As SPList
Dim contentTypeId As SPContentTypeId
Dim returnValue As SPContentTypeId

returnValue = instance.GetDirectChildContentType(contentTypeId)
public SPContentTypeId GetDirectChildContentType(
    SPContentTypeId contentTypeId
)

Paramètres

Valeur renvoyée

Type : Microsoft.SharePoint.SPContentTypeId
The ID of the child content type.

Exceptions

Exception Condition
ArgumentException

contentTypeId is not a valid content type ID.

- ou -

The direct child content type of the specified content type does not exist.

Voir aussi

Référence

SPList classe

SPList - Membres

Microsoft.SharePoint - Espace de noms