DurableServiceAttribute 類別

定義

警告

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

指定長期服務合約實作的內部執行行為。

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

備註

會檢查以下項目,做為長期服務驗證邏輯的一部分︰

建構函式

DurableServiceAttribute()

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

屬性

SaveStateInOperationTransaction

取得或設定值,此值表示是否會採用與執行作業相同的異動,將服務執行個體的狀態保存至 PersistenceProvider

TypeId

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

(繼承來源 Attribute)
UnknownExceptionAction

取得或設定與長期服務相關聯的 UnknownExceptionAction 列舉值。

方法

AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

未實作在 DurableServiceAttribute 中。

ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

自訂服務執行階段,以支援長期服務行為屬性,如指定服務的 PersistenceProvider

Equals(Object)

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

(繼承來源 Attribute)
GetHashCode()

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

(繼承來源 Attribute)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IsDefaultAttribute()

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

(繼承來源 Attribute)
Match(Object)

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

(繼承來源 Attribute)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)
Validate(ServiceDescription, ServiceHostBase)

驗證服務上的所有長期作業是否都正確設定。

明確介面實作

_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)

適用於