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.
Retrieves the default content type ID for a list.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
Public Shared Function GetDefaultContentTypeId ( _
list As SPList _
) As SPContentTypeId
'Usage
Dim list As SPList
Dim returnValue As SPContentTypeId
returnValue = Helper.GetDefaultContentTypeId(list)
public static SPContentTypeId GetDefaultContentTypeId(
SPList list
)
Parameters
list
Type: Microsoft.SharePoint.SPListA SPList object representing the list for whose default content type is being retrieved.
Return Value
Type: Microsoft.SharePoint.SPContentTypeId
Returns a SPContentTypeId object containing the default content type ID.
Remarks
If the list does not allow content types or does not have any non- null content types, the return value will be SPContentTypeID.Empty.