This documentation is archived and is not being maintained.

SPList.GetDirectChildContentType Method

Windows SharePoint Services 3

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

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

public SPContentTypeId GetDirectChildContentType(
	SPContentTypeId contentTypeId
)

Parameters

contentTypeId
Type: Microsoft.SharePoint.SPContentTypeId
An SPContentTypeId value that represents the content type identifier of the parent content type.

Return Value

Type: Microsoft.SharePoint.SPContentTypeId
An SPContentTypeId value that represents the identifier of the child content type.
Show: