Freigeben über


Expression.Quote(Expression) Methode

Definition

Erstellt einen UnaryExpression Ausdruck, der einen Ausdruck darstellt, der einen konstanten Wert vom Typ Expressionaufweist.

public:
 static System::Linq::Expressions::UnaryExpression ^ Quote(System::Linq::Expressions::Expression ^ expression);
public static System.Linq.Expressions.UnaryExpression Quote(System.Linq.Expressions.Expression expression);
static member Quote : System.Linq.Expressions.Expression -> System.Linq.Expressions.UnaryExpression
Public Shared Function Quote (expression As Expression) As UnaryExpression

Parameter

expression
Expression

Eine Expression , die die Operand Eigenschaft gleich festlegen soll.

Gibt zurück

A UnaryExpression that has the NodeType property equal to Quote and the Operand property set to the specified value.

Ausnahmen

expression ist null.

Hinweise

Die Type Eigenschaft des resultierenden UnaryExpression Objekts stellt den konstruierten Typ Expression<TDelegate>dar, wobei das Typargument der durch expression. Typ. Die Method Eigenschaft ist null. Beide IsLifted und IsLiftedToNull sind false.

Gilt für: