Freigeben über


OrganizationServiceContext.Attach Methode

Notifies the OrganizationServiceContext to start tracking the specified entity.

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

Syntax

'Declaration
Public Sub Attach ( _
    entity As Entity _
)
public void Attach (
    Entity entity
)

Parameter

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

Anmerkungen

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.

Thread-Sicherheit

Alle öffentlichen statischen Mitglieder (Shared in Visual Basic) dieses Typs sind thread-sicher. Bei Instanzmitgliedern kann keine Garantie für die Thread-Sicherheit übernommen werden.

Plattformen

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Siehe auch

Referenz

OrganizationServiceContext Klasse
OrganizationServiceContext Mitglieder
Microsoft.Xrm.Sdk.Client Namespace

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