This topic has not yet been rated - Rate this topic

SqlGeometry.STAsBinary Method

SQL Server 2008 R2

Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a SqlGeometry instance. This value will not contain any Z or M values carried by the instance.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlBytes STAsBinary()

Return Value

Type: System.Data.SqlTypes.SqlBytes
A SqlBytes object containing the WKB representation of the SqlGeometry.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ