Quote Method
TOC
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public Shared Function Quote ( _
	expression As Expression _
) As UnaryExpression

Parameters

expression
Type: System.Linq.Expressions.Expression
An Expression to set the Operand property equal to.

Return Value

Type: System.Linq.Expressions.UnaryExpression
A UnaryExpression that has the NodeType property equal to Quote and the Operand property set to the specified value.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft