Partager via


Méthode OrganizationServiceProxy.Disassociate

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

Deletes a link between records.

Espace de noms: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

'Déclaration
Public Sub Disassociate ( _
    entityName As String, _
    entityId As Guid, _
    relationship As Relationship, _
    relatedEntities As EntityReferenceCollection _
)
public void Disassociate (
    string entityName,
    Guid entityId,
    Relationship relationship,
    EntityReferenceCollection relatedEntities
)

Paramètres

  • entityName
    Type: Chaîne. The logical name of the entity specified in the entityId parameter.
  • entityId
    Type: GUID. The ID of the record from which the related records will be disassociated.
  • relationship
    Type: Relationship. The name of the relationship to be used to remove the link.
  • relatedEntities
    Type: EntityReferenceCollection. A collection of entity references (references to records) to be disassociated.

Remarques

The core implementation of the Disassociate method. For more information, see IOrganizationService.Disassociate.

Pour plus d'informations sur the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle Exceptions in Your Code.

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 Vista,Windows XP

Voir aussi

Référence

Classe OrganizationServiceProxy
Membres OrganizationServiceProxy
Espace de noms Microsoft.Xrm.Sdk.Client

Autres ressources

Troubleshooting and Error Handling
Read and Write Data and Metadata using the IOrganizationService Web Service

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