Edit

Share via


EdmFunctions.Var(DbExpression) Method

Definition

Creates a DbFunctionExpression that invokes the canonical 'Var' function over the non-null members of the specified collection. The result type of the expression is Edm.Double.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Var(System::Data::Common::CommandTrees::DbExpression ^ collection);
public static System.Data.Common.CommandTrees.DbFunctionExpression Var (this System.Data.Common.CommandTrees.DbExpression collection);
static member Var : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Var (collection As DbExpression) As DbFunctionExpression

Parameters

collection
DbExpression

An expression that specifies the collection for which the statistical variance should be computed.

Returns

A new DbFunctionExpression that produces the statistical variance value for the non-null members of the collection.

Exceptions

collection is null.

collection is invalid.

Applies to