Share via


SpatialEdmFunctions.AsGml(DbExpression) 方法

定义

创建 DbFunctionExpression,它使用指定参数(该参数必须具有 Edm.Geography 或 Edm.Geometry 结果类型)调用规范 'AsGml' 函数。 表达式的结果类型为 Edm.String。

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

参数

spatialValue
DbExpression

一个表达式,从应生成的地理标记语言 (GML) 表示形式中指定空间值。

返回

一个新的 DbFunctionExpression,它返回 spatialValue 的地理标记语言 (GML) 表示形式。

例外

spatialValue

spatialValue

适用于