Return Type: CSOM Boolean

Updates the content type identifier (as specified in [MS-CSOMSPT] section of the default document. Returns false if the current content type identifier on the specified document is identical to the new one. If the document is not found throws System.ArgumentOutOfRangeException. Otherwise returns true.


name: Name of the default document to be updated. MUST NOT be NULL or empty string.

Type: CSOM String

contentTypeId: New content type identifier for the default document.

Type: Microsoft.SharePoint.Client.ContentTypeId