SqlGeometryBuilder.SetSrid Method

Sets the Spatial Reference Identifier (SRID) for a geometry type call sequence.

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

Syntax

'Declaration
Public Overridable Sub SetSrid ( _
    srid As Integer _
)
'Usage
Dim instance As SqlGeometryBuilder
Dim srid As Integer

instance.SetSrid(srid)
public virtual void SetSrid(
    int srid
)
public:
virtual void SetSrid(
    int srid
)
abstract SetSrid : 
        srid:int -> unit 
override SetSrid : 
        srid:int -> unit 
public function SetSrid(
    srid : int
)

Parameters

  • srid
    Type: System.Int32
    An int that contains the Spatial Reference Identifier for the geometry type.

Implements

IGeometrySink.SetSrid(Int32)

Remarks

Must call SetSrid() at the start of each geometry type call sequence.

See Also

Reference

SqlGeometryBuilder Class

Microsoft.SqlServer.Types Namespace