Share via


SqlGeometry.STSrid Property

Gets or sets an integer that represents the Spatial Reference Identifier (SRID) of the instance.

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

Syntax

'Declaration
Public Property STSrid As SqlInt32
    Get
    Set
'Usage
Dim instance As SqlGeometry
Dim value As SqlInt32

value = instance.STSrid

instance.STSrid = value
public SqlInt32 STSrid { get; set; }
public:
property SqlInt32 STSrid {
    SqlInt32 get ();
    void set (SqlInt32 value);
}
member STSrid : SqlInt32 with get, set
function get STSrid () : SqlInt32
function set STSrid (value : SqlInt32)

Property Value

Type: System.Data.SqlTypes.SqlInt32
A SqlInt32 value that contains the SRID of the SqlGeometry instance.

Remarks

This property can be modified.

See Also

Reference

SqlGeometry Class

Microsoft.SqlServer.Types Namespace