Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DbUnaryExpression.Argument Property

Gets or sets the DbExpression that defines the argument.

Namespace:  System.Data.Common.CommandTrees
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public DbExpression Argument { get; }

Property Value

Type: System.Data.Common.CommandTrees.DbExpression
The DbExpression that defines the argument.

ExceptionCondition
ArgumentNullException

The expression is null.

ArgumentException

The expression is not associated with the command tree of a DbUnaryExpression, or its result type is not equal or promotable to the required type for the argument.

Derived expression types might perform stricter type checks when the Argument property is set. For example, DbDistinctExpression requires that its argument expression has a collection result type. Typically, derived expression types will not allow Argument to be set to an expression with a result type that is not equal or promotable to the result type of the current value.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft