3.1.5.6.2.1.1 ChangeContentTypeForDocument

Return Type: CSOM Boolean

Updates the content type identifier (as specified in [MS-CSOMSPT] section 3.2.5.30) 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.

Parameters:

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