DefaultDocumentCollection.ChangeContentTypeForDocument - Méthode
Espace de noms : Microsoft.SharePoint.Client.DocumentSet
Assemblys : Microsoft.SharePoint.Client.DocumentManagement.Silverlight (dans Microsoft.SharePoint.Client.DocumentManagement.Silverlight.dll); Microsoft.SharePoint.Client.DocumentManagement.Phone (dans Microsoft.SharePoint.Client.DocumentManagement.Phone.dll) Microsoft.SharePoint.Client.DocumentManagement (dans Microsoft.SharePoint.Client.DocumentManagement.dll)
Syntaxe
'Déclaration
Public Function ChangeContentTypeForDocument ( _
name As String, _
contentTypeId As ContentTypeId _
) As ClientResult(Of Boolean)
'Utilisation
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
)
Paramètres
- name
Type : System.String
- contentTypeId
Type : Microsoft.SharePoint.Client.ContentTypeId
Valeur renvoyée
Type : Microsoft.SharePoint.Client.ClientResult<Boolean>
Voir aussi
Référence
DefaultDocumentCollection classe