SpatialEdmFunctions.SpatialElementCount(DbExpression) Methode

Definition

Erstellt eine DbFunctionExpression , die die kanonische "SpatialElementCount"-Funktion mit dem angegebenen Argument aufruft, die einen Edm.Geography- oder Edm.Geometry-Ergebnistyp aufweisen muss. Der Ergebnistyp des Ausdrucks ist Edm.Int32.

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

Parameter

spatialValue
DbExpression

Ein Ausdruck, der den Geografischen oder Geometrieauflistungswert angibt, aus dem die Anzahl der Elemente abgerufen werden soll.

Gibt zurück

Ein neuer DbFunctionExpression,der entweder die Anzahl der Elemente in spatialValue oder null wenn spatialValue es sich nicht um eine Auflistung handelt.

Ausnahmen

spatialValue

spatialValue

Gilt für: