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.
Return Type: Microsoft.SharePoint.Client.ContentType
Adds the specified content type to the content type collection.
Parameters:
contentTypeId: Specifies the identifier of the content type to be added to the content type collection. It MUST exist in the web's available content types.
Type: CSOM String
Exceptions:
Error Code |
Error Type Name |
Condition |
---|---|---|
183 |
Microsoft.SharePoint.SPException |
A ContentType with the same name exists. |