次の方法で共有


SqlGeography.STAsBinary メソッド

SqlGeography インスタンスについて Open Geospatial Consortium (OGC) の Well-Known Binary (WKB) 表現を返します。

名前空間:  Microsoft.SqlServer.Types
アセンブリ:  Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)

構文

'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STAsBinary As SqlBytes
'使用
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

戻り値

型: System.Data.SqlTypes.SqlBytes
呼び出し元の SqlGeography の WKB 表現を含む SqlBytes 値です。

説明

この値には、インスタンスに格納されている Z 値または M 値が含まれません。

関連項目

参照

SqlGeography クラス

Microsoft.SqlServer.Types 名前空間