LambdaReference<T> Classe

Definição

Representa uma expressão lambda usada como um valor l, que é compatível com a associação de argumentos Out.Represents a lambda expression used as an l-value, which supports binding of Out arguments.

generic <typename T>
public ref class LambdaReference sealed : System::Activities::CodeActivity<System::Activities::Location<T> ^>, System::Activities::XamlIntegration::IValueSerializableExpression
public sealed class LambdaReference<T> : System.Activities.CodeActivity<System.Activities.Location<T>>, System.Activities.XamlIntegration.IValueSerializableExpression
type LambdaReference<'T> = class
    inherit CodeActivity<Location<'T>>
    interface IValueSerializableExpression
Public NotInheritable Class LambdaReference(Of T)
Inherits CodeActivity(Of Location(Of T))
Implements IValueSerializableExpression

Parâmetros de tipo

T

O tipo de valor retornado pela expressão.The type of value returned by the expression.

Herança
Implementações

Comentários

LambdaReference<T> é usado para expressões lambda especificadas no código e não pode ser serializado para XAML.LambdaReference<T> is used for lambda expressions specified in code and cannot be serialized to XAML. Se uma tentativa de serializar um fluxo de trabalho que contém um LambdaReference<T> for feita, um LambdaSerializationException será lançado.If an attempt to serialize a workflow that contains a LambdaReference<T> is made, a LambdaSerializationException is thrown. Se o fluxo de trabalho que o contém requer serialização XAML, use VisualBasicReference<TResult> ou use ExpressionServices para converter o LambdaReference<T> em um formato que possa ser serializado.If the containing workflow requires XAML serialization, use VisualBasicReference<TResult> or use ExpressionServices to convert the LambdaReference<T> to a format that can be serialized.

Essa atividade usa o provedor LINQ to Entity para avaliar expressões LINQ.This activity uses the LINQ to Entity provider to evaluate LINQ expressions. Todas as expressões LINQ usadas com essa atividade devem ser evaluatabledas pelo Modelo de Dados de Entidade ADO.Net.Any LINQ expressions used with this activity must be evaluatable by the ADO.Net Entity Data Model. Por exemplo, expressões LINQ não podem ser usadas para fazer referência a atividades, variáveis ou argumentos do próprio fluxo de trabalho.For example, LINQ expressions cannot be used to reference activities, variables, or arguments of the workflow itself.

Construtores

LambdaReference<T>(Expression<Func<ActivityContext,T>>)

Inicializa uma nova instância da classe LambdaReference<T>.Initializes a new instance of the LambdaReference<T> 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>)
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>)
CanConvertToString(IValueSerializerContext)

Esse método sempre retorna true e é usado em conjunto com ConvertToString(IValueSerializerContext) para fornecer mensagens de erro descritivas quando é feita uma tentativa de serializar esta atividade para XAML.This method always returns true and is used in conjunction with ConvertToString(IValueSerializerContext) to provide descriptive error messages when an attempt is made to serialize this activity to XAML.

ConvertToString(IValueSerializerContext)

Gera um LambdaSerializationException e é usado em conjunto com CanConvertToString(IValueSerializerContext) para fornecer mensagens de erro descritivas quando é feita uma tentativa de serializar esta atividade para XAML.Throws a LambdaSerializationException and is used in conjunction with CanConvertToString(IValueSerializerContext) to provide descriptive error messages when an attempt is made to serialize this activity to XAML.

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