Export (0) Print
Expand All

SPList.GetDirectChildContentType method

Returns the content type identifier (ID) 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

The content type ID of the parent content type.

Return value

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

ExceptionCondition
ArgumentException

contentTypeId is not a valid content type ID.

-or-

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

Show:
© 2014 Microsoft