Share via


SqlGeometry.Serialize Method

Returns the bytes that represent an internal SQL Server format of SqlGeometry type.

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

Syntax

'Declaration
Public Function Serialize As SqlBytes
'Usage
Dim instance As SqlGeometry
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
Returns the bytes that represent an internal SQL Server format of SqlGeometry type.

Remarks

This is useful for sending spatial data across the network.

See Also

Reference

SqlGeometry Class

Microsoft.SqlServer.Types Namespace