.NET Framework Class Library
Expression..::.Quote Method

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)
Syntax

Visual Basic (Declaration)
Public Shared Function Quote ( _
    expression As Expression _
) As UnaryExpression
Visual Basic (Usage)
Dim expression As Expression
Dim returnValue As UnaryExpression

returnValue = Expression.Quote(expression)
C#
public static UnaryExpression Quote(
    Expression expression
)
Visual C++
public:
static UnaryExpression^ Quote(
    Expression^ expression
)
JScript
public static function Quote(
    expression : Expression
) : 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.
Exceptions

ExceptionCondition
ArgumentNullException

expression is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

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 nullNothingnullptra null reference (Nothing in Visual Basic). Both IsLifted and IsLiftedToNull are false.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5
See Also

Reference

Tags :


Page view tracker