SPList.GetDirectChildContentType-Methode

Gibt den Inhaltstyp-Bezeichner (ID) für den Inhaltstyp, der ein direktes untergeordnetes Element des angegebenen Inhaltstyps ist.

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

Syntax

'Declaration
Public Function GetDirectChildContentType ( _
    contentTypeId As SPContentTypeId _
) As SPContentTypeId
'Usage
Dim instance As SPList
Dim contentTypeId As SPContentTypeId
Dim returnValue As SPContentTypeId

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

Parameter

Rückgabewert

Typ: Microsoft.SharePoint.SPContentTypeId
Die ID des untergeordneten Inhaltstyps.

Ausnahmen

Ausnahme Bedingung
ArgumentException

contentTypeId ist keine gültige Inhaltstyp.

-ODER-

Der direkt untergeordneten Inhaltstyp des angegebenen Inhaltstyps ist nicht vorhanden.

Siehe auch

Referenz

SPList Klasse

SPList-Member

Microsoft.SharePoint-Namespace