InstancePersistenceContext.BindInstance(Guid) Metod

Definition

Binder en instans vars identifierare anges som en parameter till det aktuella instanshandtaget.

public:
 void BindInstance(Guid instanceId);
public void BindInstance(Guid instanceId);
member this.BindInstance : Guid -> unit
Public Sub BindInstance (instanceId As Guid)

Parametrar

instanceId
Guid

En instansidentifierare. Får inte vara Guid.Empty.

Kommentarer

När en instans är bunden till ett handtag förblir den bunden för handtagets livslängd. Ingen annan instans kan någonsin bindas till handtaget.

Gäller för