ActivityAction<T1,T2> Classe

Definição

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

generic <typename T1, typename T2>
public ref class ActivityAction sealed : System::Activities::ActivityDelegate
public sealed class ActivityAction<T1,T2> : System.Activities.ActivityDelegate
type ActivityAction<'T1, 'T2> = class
    inherit ActivityDelegate
Public NotInheritable Class ActivityAction(Of T1, T2)
Inherits ActivityDelegate

Parâmetros de tipo

T1

O tipo do primeiro argumento do delegado de atividade.The type of the first in argument of the activity delegate.

T2

O tipo do segundo argumento do delegado de atividade.The type of the second in argument of the activity delegate.

Herança
ActivityAction<T1,T2>

Comentários

Um representante de atividade permite que um desenvolvedor defina a assinatura necessária de uma atividade que será especificada por terceiros.An activity delegate allows a developer to define the required signature of an activity that will be specified by a third party.

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á tipos ActivityFunc para delegados de atividade que retornam valores.There are also ActivityFunc types for activity delegates that return values.

Construtores

ActivityAction<T1,T2>()

Cria uma nova instância da classe ActivityAction<T1,T2>.Creates a new instance of the ActivityAction<T1,T2> class.

Propriedades

Argument1

Obtém ou define o primeiro argumento de entrada do representante de atividade.Gets or sets the first in argument of the activity delegate.

Argument2

Obtém ou define o segundo argumento de entrada do representante de atividade.Gets or sets the second in argument of the activity delegate.

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