DurableServiceAttribute Klasa

Definicja

Przestroga

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

Określa wewnętrzne zachowanie implementacji trwałej kontraktu usługi.

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
Dziedziczenie
DurableServiceAttribute
Atrybuty
Implementuje

Uwagi

Następujące elementy są sprawdzane jako część logiki walidacji dla usług trwałych:

Konstruktory

DurableServiceAttribute()

Inicjuje nowe wystąpienie klasy DurableServiceAttribute.

Właściwości

SaveStateInOperationTransaction

Pobiera lub ustawia wartość wskazującą, czy stan wystąpienia usługi jest utrwalany PersistenceProvider przy użyciu tej samej transakcji, w której uruchomiono operację.

TypeId

Po zaimplementowaniu w klasie pochodnej pobiera unikatowy identyfikator dla tego Attributeelementu .

(Odziedziczone po Attribute)
UnknownExceptionAction

Pobiera lub ustawia UnknownExceptionAction wartość wyliczenia skojarzoną z usługą trwałą.

Metody

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

Nie zaimplementowane w DurableServiceAttribute .

ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

Dostosowuje środowisko uruchomieniowe usługi, aby obsługiwało trwałe właściwości zachowań usługi, takie jak określenie a PersistenceProvider dla usługi.

Equals(Object)

Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.

(Odziedziczone po Attribute)
GetHashCode()

Zwraca wartość skrótu dla tego wystąpienia.

(Odziedziczone po Attribute)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
IsDefaultAttribute()

W przypadku zastąpienia w klasie pochodnej wskazuje, czy wartość tego wystąpienia jest wartością domyślną klasy pochodnej.

(Odziedziczone po Attribute)
Match(Object)

Po przesłonięciu w klasie pochodnej zwraca wartość wskazującą, czy to wystąpienie jest równe określonemu obiektowi.

(Odziedziczone po Attribute)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)
Validate(ServiceDescription, ServiceHostBase)

Sprawdza, czy wszystkie trwałe operacje w usłudze są poprawnie skonfigurowane.

Jawne implementacje interfejsu

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

Zestaw nazw jest mapowany na odpowiedni zestaw identyfikatorów wysyłania.

(Odziedziczone po Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

Pobiera informacje o typie dla obiektu, który może służyć do pobierania informacji o typie dla interfejsu.

(Odziedziczone po Attribute)
_Attribute.GetTypeInfoCount(UInt32)

Pobiera informację o liczbie typów interfejsów, jakie zawiera obiekt (0 lub 1).

(Odziedziczone po Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

Umożliwia dostęp do właściwości i metod udostępnianych przez obiekt.

(Odziedziczone po Attribute)

Dotyczy