DurableOperationAttribute 類別

定義

警告

The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*

指定長期服務方法的本機執行行為。

public ref class DurableOperationAttribute sealed : Attribute, System::ServiceModel::Description::IOperationBehavior
[System.AttributeUsage(System.AttributeTargets.Method)]
public sealed class DurableOperationAttribute : Attribute, System.ServiceModel.Description.IOperationBehavior
[System.AttributeUsage(System.AttributeTargets.Method)]
[System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")]
public sealed class DurableOperationAttribute : Attribute, System.ServiceModel.Description.IOperationBehavior
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type DurableOperationAttribute = class
    inherit Attribute
    interface IOperationBehavior
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")>]
type DurableOperationAttribute = class
    inherit Attribute
    interface IOperationBehavior
Public NotInheritable Class DurableOperationAttribute
Inherits Attribute
Implements IOperationBehavior
繼承
DurableOperationAttribute
屬性
實作

備註

成功叫用作業後,長期服務狀態資訊會保存下來。 您無法在作業執行期間保存狀態資訊,雖然您可以在工作流程服務之中這麼做。

建構函式

DurableOperationAttribute()

初始化 DurableOperationAttribute 類別的新執行個體。

屬性

CanCreateInstance

取得或設定值,此值表示若此作業接收到啟動訊息時,是否要建立新的服務執行個體。 發送器會把沒有附加執行個體 ID 的訊息視為啟動訊息。

CompletesInstance

取得或設定值,此值表示當作業執行完成時,是否要將服務執行個體從記憶體中卸載,並從持續性儲存中刪除。

TypeId

在衍生類別中實作時,取得這個 Attribute 的唯一識別碼。

(繼承來源 Attribute)

方法

AddBindingParameters(OperationDescription, BindingParameterCollection)

未實作在 DurableOperationAttribute 中。

ApplyClientBehavior(OperationDescription, ClientOperation)

未實作在 DurableOperationAttribute 中。

ApplyDispatchBehavior(OperationDescription, DispatchOperation)

實作作業的服務端行為。

Equals(Object)

傳回值,這個值指出此執行個體是否與指定的物件相等。

(繼承來源 Attribute)
GetHashCode()

傳回這個執行個體的雜湊碼。

(繼承來源 Attribute)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IsDefaultAttribute()

在衍生類別中覆寫時,表示這個執行個體的值是衍生類別的預設值。

(繼承來源 Attribute)
Match(Object)

在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。

(繼承來源 Attribute)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
Validate(OperationDescription)

未實作在 DurableOperationAttribute 中。

明確介面實作

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。

(繼承來源 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

擷取物件的類型資訊,可以用來取得介面的類型資訊。

(繼承來源 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

擷取物件提供的類型資訊介面數目 (0 或 1)。

(繼承來源 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

提供物件所公開的屬性和方法的存取權。

(繼承來源 Attribute)

適用於