SqlGeography.Serialize Method

Used for sending spatial data across the network.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)

Syntax

'Declaration
Public Function Serialize As SqlBytes
'Usage
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

Return Value

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

Remarks

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

See Also

Reference

SqlGeography Class

Microsoft.SqlServer.Types Namespace