Export (0) Print
Expand All
Expand Minimize

SqlGeometry.STAsBinary Method

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 Function STAsBinary As SqlBytes
Dim instance As SqlGeometry 
Dim returnValue As SqlBytes 

returnValue = instance.STAsBinary()

Return Value

Type: SqlBytes
A SqlBytes object containing the WKB representation of the SqlGeometry.

Community Additions

© 2014 Microsoft