InstanceStore.DefaultInstanceOwner 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置默认实例的所有者。
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 对象可能不会进行垃圾回收。
警告
即使此方法声明为而不是,也没有 virtual
abstract
实现。 若要提供功能,必须重写此方法。