SpatialEdmFunctions.AsText(DbExpression) Methode

Definitie

Hiermee maakt u een DbFunctionExpression functie die de canonieke astekstfunctie aanroept met het opgegeven argument, dat een resultaattype Edm.Geography of Edm.Geometry moet hebben. Het resultaattype van de expressie is Edm.String.

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

Parameters

spatialValue
DbExpression

Een expressie die de ruimtelijke waarde aangeeft waaruit de bekende tekstweergave moet worden geproduceerd.

Retouren

Een nieuwe DbFunctionExpression die de bekende tekstweergave van spatialValue.

Uitzonderingen

spatialValue

spatialValue

Van toepassing op