語言

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
屬性
實作

備註

當操作成功啟動時,持久服務狀態資訊將持續保存。 你無法像工作流服務那樣,在操作執行中持續保存狀態資訊。

建構函式

名稱 Description
DurableOperationAttribute()
已淘汰.

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

屬性

名稱 Description
CanCreateInstance
已淘汰.

在此操作中收到啟用訊息,會取得或設定一個值,指示是否能建立新的服務實例。 調度器將未附加實例 ID 的訊息視為啟用訊息。

CompletesInstance
已淘汰.

取得或設定一個值,指示操作完成後,服務實例是否會從記憶體卸載並從持久化中刪除。

TypeId
已淘汰.

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

(繼承來源 Attribute)

方法

名稱 Description
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.

明確介面實作

名稱 Description
_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)

適用於