Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlBytes STAsBinary()

Return Value

Type: 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.

Community Additions

Show:
© 2015 Microsoft