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 不是空,InstanceStore 物件可能不會被垃圾回收。
警告
即使此方法宣告為 而 virtual 非 abstract,但並無實作。 此方法必須覆寫才能提供功能。