As<TOperand,TResult> Classe

Definição

Tenta converter um operando em um determinado tipo.Attempts to converts an operand to a given type. Se a conversão não for possível, o resultado será definido como null.If the conversion is not possible the result is set to null.

generic <typename TOperand, typename TResult>
public ref class As sealed : System::Activities::CodeActivity<TResult>
public sealed class As<TOperand,TResult> : System.Activities.CodeActivity<TResult>
type As<'Operand, 'Result> = class
    inherit CodeActivity<'Result>
Public NotInheritable Class As(Of TOperand, TResult)
Inherits CodeActivity(Of TResult)

Parâmetros de tipo

TOperand

O tipo do operando.The type of the operand.

TResult

O tipo do resultado.The type of the result.

Herança

Construtores

As<TOperand,TResult>()

Inicializa uma nova instância da classe As<TOperand,TResult>.Initializes a new instance of the As<TOperand,TResult> class.

Propriedades

CacheId

Obtém um identificador do cache que é exclusivo no escopo da definição do fluxo de trabalho.Gets the identifier of the cache that is unique within the scope of the workflow definition.

(Herdado de Activity)
Constraints

Obtém uma coleção de atividades de Constraint que podem ser configuradas para fornecer validação para a Activity.Gets a collection of Constraint activities that can be configured to provide validation for the Activity.

(Herdado de Activity)
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 Activity)
Id

Obtém um identificador que é exclusivo no escopo da definição do fluxo de trabalho.Gets an identifier that is unique in the scope of the workflow definition.

(Herdado de Activity)
Implementation

Não há suporte.Not supported.

(Herdado de CodeActivity<TResult>)
ImplementationVersion

Obtém ou define a versão de implementação da atividade.Gets or sets the implementation version of the activity.

(Herdado de CodeActivity<TResult>)
Operand

Obtém ou define o operando.Gets or sets the operand.

Result

Obtém ou define o argumento de resultado para a Activity<TResult>.Gets or sets the result argument for the Activity<TResult>.

(Herdado de Activity<TResult>)
ResultType

Quando implementada em uma classe derivada, obtém o tipo de uma atividade OutArgument.When implemented in a derived class, gets the type of an activity OutArgument.

(Herdado de ActivityWithResult)

Métodos

CacheMetadata(ActivityMetadata)

Não implementado.Not implemented. Use CacheMetadata(CodeActivityMetadata) em seu lugar.Use CacheMetadata(CodeActivityMetadata) instead.

(Herdado de CodeActivity<TResult>)
CacheMetadata(CodeActivityMetadata)

Cria e valida uma descrição dos argumentos, das variáveis, das atividades filho e dos representantes da atividade.Creates and validates a description of the activity's arguments, variables, child activities, and activity delegates.

(Herdado de CodeActivity<TResult>)
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)
Execute(CodeActivityContext)

Quando implementada em uma classe derivada, realiza a execução da atividade.When implemented in a derived class, performs the execution of the activity.

(Herdado de CodeActivity<TResult>)
GetHashCode()

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

(Herdado de Object)
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)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

Gera um evento durante a criação de um mapa para a atualização dinâmica.Raises an event when creating a map for the dynamic update.

(Herdado de CodeActivity<TResult>)
ShouldSerializeDisplayName()

Indica se a propriedade DisplayName deve ser serializada.Indicates whether the DisplayName property should be serialized.

(Herdado de Activity)
ToString()

Retorna um String que contém o Id e DisplayName do Activity.Returns a String that contains the Id and DisplayName of the Activity.

(Herdado de Activity)

Aplica-se a