Partilhar via


Método OrganizationServiceContext.Attach

Aplica-se a: CRM 2015 on-prem, CRM Online

Notifies the OrganizationServiceContext to start tracking the specified entity.

Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (em Microsoft.Xrm.Sdk.dll)

Sintaxe

'Declaração
Public Sub Attach ( _
    entity As Entity _
)
public void Attach (
    Entity entity
)

Parâmetros

  • entity
    Type: Entity. The entity to be tracked.

Comentários

If the entity is part of an object graph, this operation does not traverse the graph to add related objects. It is a shallow operation.The method does not validate whether the specified entity set occurs in the Web service associated with the OrganizationServiceContext.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows Server 2003 e

Plataformas de destino

Windows Vista,Windows XP

Consulte também

Referência

Classe OrganizationServiceContext
Membros de OrganizationServiceContext
Namespace Microsoft.Xrm.Sdk.Client

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