SpatialEdmFunctions.AsText(DbExpression) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en DbFunctionExpression som anropar den kanoniska "AsText"-funktionen med det angivna argumentet, som måste ha resultattypen Edm.Geography eller Edm.Geometry. Resultattypen för uttrycket är 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
Parametrar
- spatialValue
- DbExpression
Ett uttryck som anger det rumsliga värde som den välkända textrepresentationen ska skapas från.
Returer
En ny DbFunctionExpression som returnerar den välkända textrepresentationen av spatialValue.
Undantag
spatialValue
spatialValue