共用方式為


SqlGeography.AsGml 方法

Returns the Geography Markup Language (GML) representation of a SqlGeography instance.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function AsGml As SqlXml
'用途
Dim instance As SqlGeography 
Dim returnValue As SqlXml 

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

傳回值

型別:System.Data.SqlTypes.SqlXml
A SqlXml object containing the GML representation of the SqlGeography instance.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間