语言

SpatialEdmFunctions.Centroid(DbExpression) 方法

定义

创建一个 DbFunctionExpression 调用规范“质心”函数的指定参数,该参数必须具有 Edm.Geometry 结果类型。 表达式的结果类型为 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 不是图面)。

特性

适用于