Share via


DefaultDocumentCollection.ChangeContentTypeForDocument method

Namespace:  Microsoft.SharePoint.Client.DocumentSet
Assembly:  Microsoft.SharePoint.Client.DocumentManagement (in Microsoft.SharePoint.Client.DocumentManagement.dll)

Syntax

'Declaration
Public Function ChangeContentTypeForDocument ( _
    name As String, _
    contentTypeId As ContentTypeId _
) As ClientResult(Of Boolean)
'Usage
Dim instance As DefaultDocumentCollection
Dim name As String
Dim contentTypeId As ContentTypeId
Dim returnValue As ClientResult(Of Boolean)

returnValue = instance.ChangeContentTypeForDocument(name, _
    contentTypeId)
public ClientResult<bool> ChangeContentTypeForDocument(
    string name,
    ContentTypeId contentTypeId
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<Boolean>

See also

Reference

DefaultDocumentCollection class

DefaultDocumentCollection members

Microsoft.SharePoint.Client.DocumentSet namespace