InstancePersistenceContext.BindInstanceOwner(Guid, Guid) Method

Definition

Binds an instance owner to the current instance handle.

C#
public void BindInstanceOwner(Guid instanceOwnerId, Guid lockToken);

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

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1