共用方式為


SqlGeography.Serialize 方法

Used for sending spatial data across the network.

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

語法

'宣告
Public Function Serialize As SqlBytes
'用途
Dim instance As SqlGeography 
Dim returnValue As SqlBytes 

returnValue = instance.Serialize()
public SqlBytes Serialize()
public:
SqlBytes^ Serialize()
member Serialize : unit -> SqlBytes
public function Serialize() : SqlBytes

傳回值

型別:System.Data.SqlTypes.SqlBytes
A SqlBytes stream representing the spatial data being sent across the network.

備註

Used in conjunction with Deserialize() for sending spatial data across the network.

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間