ActivityAction Classe

Definição

Define um delegado de atividade que não tem argumentos de entrada e não retorna um valor.Defines an activity delegate that has no in arguments and does not return a value.

public ref class ActivityAction sealed : System::Activities::ActivityDelegate
public sealed class ActivityAction : System.Activities.ActivityDelegate
type ActivityAction = class
    inherit ActivityDelegate
Public NotInheritable Class ActivityAction
Inherits ActivityDelegate
Herança
ActivityAction

Comentários

Um representante de atividade executa uma atividade que tem uma assinatura necessária, como a ForEach<T> atividade que requer uma variável de iteração ou a Catch<TException> atividade que requer um Exception .An activity delegate executes an activity that has a required signature, such as the ForEach<T> activity that requires an iteration variable or the Catch<TException> activity that requires an Exception.

Há várias versões genéricas desse tipo que levam de 1 a 16 argumentos para a atividade que é chamada.There are multiple generic versions of this type that take from 1 to 16 arguments for the activity that is called. Também há ActivityFunc<TResult> tipos de delegados que retornam valores.There are also ActivityFunc<TResult> types for delegates that return values.

Construtores

ActivityAction()

Cria uma nova instância da classe ActivityAction.Creates a new instance of the ActivityAction class.

Propriedades

DisplayName

Obtém ou define um nome amigável opcional que é usado para depuração, validação, manipulação de exceções e acompanhamento.Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

(Herdado de ActivityDelegate)
Handler

Obtém ou define a atividade que é representada por esse ActivityDelegate.Gets or sets the activity that is represented by this ActivityDelegate.

(Herdado de ActivityDelegate)

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetResultArgument()

Quando implementado em uma classe derivada, retorna o DelegateOutArgument do ActivityDelegate.When implemented in a derived class, returns the DelegateOutArgument of the ActivityDelegate.

(Herdado de ActivityDelegate)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
OnGetRuntimeDelegateArguments(IList<RuntimeDelegateArgument>)

Fornece uma lista de argumentos de runtime para o ActivityDelegate.Supplies a list of runtime arguments for the ActivityDelegate.

(Herdado de ActivityDelegate)
ShouldSerializeDisplayName()

Indica se o valor da propriedade DisplayName deve ser serializado para XAML.Indicates whether the DisplayName property value should be serialized to XAML.

(Herdado de ActivityDelegate)
ToString()

Retorna uma representação de String do ActivityDelegate que contém o DisplayName.Returns a String representation of the ActivityDelegate that contains the DisplayName.

(Herdado de ActivityDelegate)

Aplica-se a

Confira também