Share via


SqlGeometry.AsTextZM Method

Returns the Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation of a SqlGeometry instance, augmented with any Z (elevation) and M (measure) values carried by the instance.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function AsTextZM As SqlChars
'Usage
Dim instance As SqlGeometry
Dim returnValue As SqlChars

returnValue = instance.AsTextZM()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlChars AsTextZM()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlChars^ AsTextZM()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member AsTextZM : unit -> SqlChars
public function AsTextZM() : SqlChars

Return Value

Type: System.Data.SqlTypes.SqlChars
A SqlChars value containing the WKT representation of the SqlGeometry value.

See Also

Reference

SqlGeometry Class

Microsoft.SqlServer.Types Namespace