SpatialEdmFunctions.XCoordinate(DbExpression) 方法

定义

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

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

参数

geometryValue
DbExpression

一个表达式,指定应从中检索 X 坐标值的几何点值。

返回

一个新的 DbFunctionExpression,它返回 X 坐标值 geometryValuenull 不是 geometryValue 点。

例外

geometryValue

geometryValue

适用于