SpatialEdmFunctions.Centroid(DbExpression) 方法

定义

创建一个 DbFunctionExpression,它使用指定的参数(该参数必须具有 Edm.Geometry 结果类型)调用规范 'Centroid' 函数。 表达式的结果类型为 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

参数

geometryValue
DbExpression

一个表达式,指定几何表面数值(应通过该值检索中心值)。

返回

一个新的 DbFunctionExpression,返回 geometryValue 的质心点 (它可能不在图面本身) 或 null(如果 geometryValue 不是图面)。

属性

适用于