InstancePersistenceContext.BindInstanceOwner(Guid, Guid) Method

Definition

Binds an instance owner to the current instance handle.

public:
 void BindInstanceOwner(Guid instanceOwnerId, Guid lockToken);
public void BindInstanceOwner (Guid instanceOwnerId, Guid lockToken);
member this.BindInstanceOwner : Guid * Guid -> unit
Public Sub BindInstanceOwner (instanceOwnerId As Guid, lockToken As Guid)

Parameters

instanceOwnerId
Guid

The identifier for the instance owner.

lockToken
Guid

The lock token of the instance owner. A persistence provider may choose to use the same value for the instance owner identifier and the owner's lock token.

Remarks

Once an instance owner is bound to a handle, it remains bound for the lifetime of the handle. No other instance owner can ever be bound to the handle.

Applies to