Partager via


Méthode CrmServiceClient.UpdateEntity

S'applique à: CRM 2015 on-prem, CRM Online

Generic update entity

Espace de noms: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (dans Microsoft.Xrm.Tooling.Connector.dll)

Syntaxe

'Déclaration
Public Function UpdateEntity ( _
    entityName As String, _
    keyFieldName As String, _
    id As Guid, _
    fieldList As Dictionary(Of String, CrmDataTypeWrapper), _
    <OptionalAttribute> Optional applyToSolution As String = "", _
    <OptionalAttribute> Optional enabledDuplicateDetection As Boolean = False, _
    <OptionalAttribute> Optional batchId As Guid = Nothing _
) As Boolean
public bool UpdateEntity (
    string entityName,
    string keyFieldName,
    Guid id,
    Dictionary<string,CrmDataTypeWrapper> fieldList,
    [OptionalAttribute] string applyToSolution,
    [OptionalAttribute] bool enabledDuplicateDetection,
    [OptionalAttribute] Guid batchId
)

Paramètres

  • entityName
    String version of the entity name
  • keyFieldName
    Key fieldname of the entity
  • id
    Guid ID of the entity to update
  • fieldList
    Fields to update
  • applyToSolution
    Optional: Applies the update with a solution by Unique name
  • enabledDuplicateDetection
    Optional: if true, enabled CRM onboard duplicate detection
  • batchId
    Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

Valeur renvoyée

true on success, false on fail

Cohérence de thread

Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.

Plateformes

Plateformes de développement

Windows Vista, Windows Server 2003 et

Plateformes cibles

Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Deuxième Édition,Pocket PC,Smart Phone,Windows Server 2003,Windows XP Professionnel,Windows Vista,Windows XP

Voir aussi

Référence

Classe CrmServiceClient
Membres CrmServiceClient
Espace de noms Microsoft.Xrm.Tooling.Connector

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.