Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

OrganizationServiceContext.Attach(Entity) Method

Definition

Namespace:
Microsoft.Xrm.Sdk.Client
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Notifies the OrganizationServiceContext to start tracking the specified entity.

public:
 void Attach(Microsoft::Xrm::Sdk::Entity ^ entity);
public void Attach(Microsoft.Xrm.Sdk.Entity entity);
member this.Attach : Microsoft.Xrm.Sdk.Entity -> unit
Public Sub Attach (entity As Entity)

Parameters

entity
Entity

The entity to be tracked.

Remarks

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.

Applies to