SpatialEdmFunctions.Centroid(DbExpression) 方法

定义

创建一个 DbFunctionExpression 调用规范“质心”函数的指定参数,该参数必须具有 Edm.Geometry 结果类型。 表达式的结果类型为 Edm.Geometry。

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

参数

geometryValue
DbExpression

一个表达式,指定应从中检索质心的几何图形图面值。

返回

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

例外

geometryValue

geometryValue

适用于