Expression.Quote Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a UnaryExpression that represents an expression that has a constant value of type Expression.
Assembly: System.Core (in System.Core.dll)
Parameters
- expression
- Type: System.Linq.Expressions.Expression
An Expression to set the Operand property equal to.
Return Value
Type: System.Linq.Expressions.UnaryExpressionA UnaryExpression that has the NodeType property equal to Quote and the Operand property set to the specified value.
| Exception | Condition |
|---|---|
| ArgumentNullException | expression is Nothing. |
The Type property of the resulting UnaryExpression represents the constructed type Expression(Of TDelegate), where the type argument is the type represented by expression.Type. The Method property is Nothing. Both IsLifted and IsLiftedToNull are false.