DurableOperationAttribute Klasa

Definicja

Przestroga

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

Określa zachowanie lokalnego wykonywania metody trwałej usługi.

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

Uwagi

Informacje o stanie usługi trwałej zostaną utrwalone po pomyślnym wywołaniu operacji. Nie można utrwalić informacji o stanie podczas wykonywania operacji, tak jak w przypadku usług przepływu pracy.

Konstruktory

DurableOperationAttribute()

Inicjuje nowe wystąpienie klasy DurableOperationAttribute.

Właściwości

CanCreateInstance

Pobiera lub ustawia wartość, która wskazuje, czy można utworzyć nowe wystąpienie usługi w przypadku odebrania komunikatu aktywacji dla tej operacji. Dyspozytor uznaje komunikaty bez dołączonego identyfikatora wystąpienia za komunikaty aktywacji.

CompletesInstance

Pobiera lub ustawia wartość, która wskazuje, czy wystąpienie usługi zostanie zwolniony z pamięci i usunięte z trwałości po zakończeniu wykonywania operacji.

TypeId

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

(Odziedziczone po Attribute)

Metody

AddBindingParameters(OperationDescription, BindingParameterCollection)

Nie zaimplementowane w DurableOperationAttribute programie .

ApplyClientBehavior(OperationDescription, ClientOperation)

Nie zaimplementowane w DurableOperationAttribute programie .

ApplyDispatchBehavior(OperationDescription, DispatchOperation)

Implementuje zachowanie operacji po stronie 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(OperationDescription)

Nie zaimplementowane w DurableOperationAttribute programie .

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