Handle Handle Handle Handle Class

定義

表示型別,這個型別的存留期由工作流程執行階段所控制。Represents a type that has its lifetime controlled by the workflow runtime.

public ref class Handle abstract
[System.Runtime.Serialization.DataContract]
public abstract class Handle
type Handle = class
Public MustInherit Class Handle
繼承
HandleHandleHandleHandle
衍生
屬性

備註

衍生自 Handle 的型別,其存留期由工作流程執行階段所控制。Types derived from Handle have their lifetimes controlled by the workflow runtime. 針對控制碼類型的工作流程變數, 執行時間會使用必要的無參數函式來建立類型的實例、將Variable它指派給OnInitialize , 並在初始化環境時呼叫。For workflow variables of handle types, the runtime uses the required parameterless constructor to create an instance of the type, assigns it to the Variable, and calls OnInitialize when initializing the environment. 當變數超出範圍時,就會呼叫 OnUninitializeWhen the variable goes out of scope, OnUninitialize is called.

建構函式

Handle() Handle() Handle() Handle()

初始化 Handle 類別的新執行個體。Initializes a new instance of the Handle class.

屬性

ExecutionPropertyName ExecutionPropertyName ExecutionPropertyName ExecutionPropertyName

在新增至活動的執行屬性時,取得這個 Handle 要使用的名稱。Gets the name to be used by this Handle when added to an activity's execution properties.

Owner Owner Owner Owner

取得包含 ActivityInstance (其中包括 Variable) 的 HandleGets the ActivityInstance that contains the Variable that contains the Handle.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnInitialize(HandleInitializationContext) OnInitialize(HandleInitializationContext) OnInitialize(HandleInitializationContext) OnInitialize(HandleInitializationContext)

當初始化包含 Handle 的環境時,將由工作流程執行階段呼叫。Called by the workflow runtime when the environment that contains the Handle is initialized.

OnUninitialize(HandleInitializationContext) OnUninitialize(HandleInitializationContext) OnUninitialize(HandleInitializationContext) OnUninitialize(HandleInitializationContext)

VariableHandle 超出範圍時,將由工作流程執行階段呼叫。Called by the workflow runtime when the Variable for the Handle goes out of scope.

ThrowIfUninitialized() ThrowIfUninitialized() ThrowIfUninitialized() ThrowIfUninitialized()

如果 InvalidOperationException 尚未初始化,會擲回 HandleThrows an InvalidOperationException if the Handle has not been initialized.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於