SpatialEdmFunctions.SpatialElementCount(DbExpression) Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee maakt u een DbFunctionExpression functie die de canonieke functie SpatialElementCount aanroept met het opgegeven argument, dat een resultaattype Edm.Geography of Edm.Geometry moet hebben. Het resultaattype van de expressie is 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
Parameters
- spatialValue
- DbExpression
Een expressie die de waarde van de verzameling geografie of geometrie aangeeft waaruit het aantal elementen moet worden opgehaald.
Retouren
Een nieuwe DbFunctionExpression die het aantal elementen in spatialValue of null als spatialValue dit geen verzameling is, retourneert.
Uitzonderingen
spatialValue
spatialValue