SqlGeography.STAsBinary Method ()
Applies To: SQL Server 2016 Preview
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)
Syntax
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlBytes STAsBinary()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlBytes^ STAsBinary()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STAsBinary : unit -> SqlBytes
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function STAsBinary As SqlBytes
Return Value
Type: System.Data.SqlTypes.SqlBytes
A SqlBytes value containing the WKB representation of the calling SqlGeography.
Remarks
This value will not contain any Z or M values carried by the instance.
See Also
SqlGeography Class
Microsoft.SqlServer.Types Namespace
Return to top