InstanceStore.CreateInstanceHandle Method

Definition

Creates an instance handle. If the DefaultInstanceOwner is set, the value is automatically bound as the new handle's instance owner.

Overloads

CreateInstanceHandle()

Creates an instance handle.

CreateInstanceHandle(Guid)

Creates an instance handle. If the DefaultInstanceOwner is set, the value is automatically bound as the new handle's instance owner. The instance identifier passed as a parameter is automatically bound as the new handle's instance.

CreateInstanceHandle(InstanceOwner)

Creates an instance handle. If the instance owner passed as a parameter is not null, the value is automatically bound as the new handle's instance owner. (Otherwise, no instance owner is bound, even if DefaultInstanceOwner is set.)

CreateInstanceHandle(InstanceOwner, Guid)

Creates an instance handle. If the instance owner passed as a parameter is not null, the value is automatically bound as the new handle's instance owner. (Otherwise, no instance owner is bound, even if DefaultInstanceOwner is set.) The instance identifier passed as a parameter is automatically bound as the new handle's instance.

CreateInstanceHandle()

Creates an instance handle.

public:
 System::Runtime::DurableInstancing::InstanceHandle ^ CreateInstanceHandle();
public System.Runtime.DurableInstancing.InstanceHandle CreateInstanceHandle ();
member this.CreateInstanceHandle : unit -> System.Runtime.DurableInstancing.InstanceHandle
Public Function CreateInstanceHandle () As InstanceHandle

Returns

The instance handle.

Applies to

CreateInstanceHandle(Guid)

Creates an instance handle. If the DefaultInstanceOwner is set, the value is automatically bound as the new handle's instance owner. The instance identifier passed as a parameter is automatically bound as the new handle's instance.

public:
 System::Runtime::DurableInstancing::InstanceHandle ^ CreateInstanceHandle(Guid instanceId);
public System.Runtime.DurableInstancing.InstanceHandle CreateInstanceHandle (Guid instanceId);
member this.CreateInstanceHandle : Guid -> System.Runtime.DurableInstancing.InstanceHandle
Public Function CreateInstanceHandle (instanceId As Guid) As InstanceHandle

Parameters

instanceId
Guid

An instance identifier. Must not be Guid.Empty.

Returns

The instance handle.

Applies to

CreateInstanceHandle(InstanceOwner)

Creates an instance handle. If the instance owner passed as a parameter is not null, the value is automatically bound as the new handle's instance owner. (Otherwise, no instance owner is bound, even if DefaultInstanceOwner is set.)

public:
 System::Runtime::DurableInstancing::InstanceHandle ^ CreateInstanceHandle(System::Runtime::DurableInstancing::InstanceOwner ^ owner);
public System.Runtime.DurableInstancing.InstanceHandle CreateInstanceHandle (System.Runtime.DurableInstancing.InstanceOwner owner);
member this.CreateInstanceHandle : System.Runtime.DurableInstancing.InstanceOwner -> System.Runtime.DurableInstancing.InstanceHandle
Public Function CreateInstanceHandle (owner As InstanceOwner) As InstanceHandle

Parameters

owner
InstanceOwner

The owner of an instance.

Returns

The instance handle. A null value indicates that the new handle should not be automatically bound to an instance owner.

Applies to

CreateInstanceHandle(InstanceOwner, Guid)

Creates an instance handle. If the instance owner passed as a parameter is not null, the value is automatically bound as the new handle's instance owner. (Otherwise, no instance owner is bound, even if DefaultInstanceOwner is set.) The instance identifier passed as a parameter is automatically bound as the new handle's instance.

public:
 System::Runtime::DurableInstancing::InstanceHandle ^ CreateInstanceHandle(System::Runtime::DurableInstancing::InstanceOwner ^ owner, Guid instanceId);
public System.Runtime.DurableInstancing.InstanceHandle CreateInstanceHandle (System.Runtime.DurableInstancing.InstanceOwner owner, Guid instanceId);
member this.CreateInstanceHandle : System.Runtime.DurableInstancing.InstanceOwner * Guid -> System.Runtime.DurableInstancing.InstanceHandle
Public Function CreateInstanceHandle (owner As InstanceOwner, instanceId As Guid) As InstanceHandle

Parameters

owner
InstanceOwner

An InstanceOwner object that represents the owner of an instance. Pass null as the value for this parameter to indicate that the new handle should not be automatically bound to an instance owner.

instanceId
Guid

An instance identifier. Must not be Guid.Empty.

Returns

The instance handle.

Applies to