Partager via


Méthode SqlGeography.STAsBinary

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

Espace de noms :  Microsoft.SqlServer.Types
Assembly :  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Syntaxe

'Déclaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STAsBinary As SqlBytes
'Utilisation
Dim instance As SqlGeography 
Dim returnValue As SqlBytes 

returnValue = instance.STAsBinary()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlBytes STAsBinary()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlBytes^ STAsBinary()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STAsBinary : unit -> SqlBytes
public function STAsBinary() : SqlBytes

Valeur de retour

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

Notes

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

Voir aussi

Référence

SqlGeography Classe

Espace de noms Microsoft.SqlServer.Types