SqlGeography.STAsBinary Method
SQL Server 2012
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.SqlBytesA SqlBytes value containing the WKB representation of the calling SqlGeography.