Expand Minimize
This topic has not yet been rated - Rate this topic

SqlGeography.STAsBinary Method

Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a SqlGeography instance.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
PublicFunctionSTAsBinaryAsSqlBytes
'Usage
DiminstanceAsSqlGeographyDimreturnValueAsSqlBytesreturnValue = instance.STAsBinary()

Return Value

Type: System.Data.SqlTypes.SqlBytes
A SqlBytes value containing the WKB representation of the calling SqlGeography.

This value will not contain any Z or M values carried by the instance.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.