Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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
)
Parameters
contentTypeId
Type: Microsoft.SharePoint.SPContentTypeIdThe content type ID of the parent content type.
Return Value
Type: Microsoft.SharePoint.SPContentTypeId
The ID of the child content type.
Exceptions
Exception | Condition |
---|---|
ArgumentException | contentTypeId is not a valid content type ID. -or- The direct child content type of the specified content type does not exist. |