InstancePersistenceContext.BindInstanceOwner(Guid, Guid) Method
Definition
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.
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.