InstanceStore.DefaultInstanceOwner 属性

定义

获取或设置默认实例所有者。

public:
 property System::Runtime::DurableInstancing::InstanceOwner ^ DefaultInstanceOwner { System::Runtime::DurableInstancing::InstanceOwner ^ get(); void set(System::Runtime::DurableInstancing::InstanceOwner ^ value); };
public System.Runtime.DurableInstancing.InstanceOwner DefaultInstanceOwner { get; set; }
member this.DefaultInstanceOwner : System.Runtime.DurableInstancing.InstanceOwner with get, set
Public Property DefaultInstanceOwner As InstanceOwner

属性值

默认实例所有者。

注解

某些主机通过读取此属性推断实例所有者使用。 WorkflowApplication 可以使用此属性。 WorkflowServiceHost 不使用此属性。

如果不再需要 DefaultInstanceOwner 属性,则必须将其设置为 null。 如果 DefaultInstanceOwner 不为 null,则无法垃圾回收 InstanceStore 对象。

Warning

即使此方法被声明为 virtual 而不是 abstract,也没有实现。 必须重写此方法才能提供功能。

适用于