Sdílet prostřednictvím


SpatialEdmFunctions.Centroid(DbExpression) Metoda

Definice

Vytvoří objekt DbFunctionExpression , který vyvolá kanonické funkce Centroid se zadaným argumentem, který musí mít typ výsledku Edm.Geometry. Typ výsledku výrazu je Edm.Geometry.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification="Standard bame", MessageId="Centroid")]
public static System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression Centroid (this System.Data.Entity.Core.Common.CommandTrees.DbExpression geometryValue);
static member Centroid : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Centroid (geometryValue As DbExpression) As DbFunctionExpression

Parametry

geometryValue
DbExpression

Výraz, který určuje hodnotu povrchu geometrie, ze které by měl být centroid načten.

Návraty

Nový DbFunctionExpression, který vrátí buď centroid bod geometryValue (který nemusí být na povrchu sám) nebo null pokud geometryValue není povrch.

Atributy

Platí pro