共用方式為


SetSrid 方法

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

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

語法

'宣告
Public Overridable Sub SetSrid ( _
    srid As Integer _
)
'用途
Dim instance As SqlGeographyBuilder
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
)

參數

  • srid
    型別:System. . :: . .Int32
    An int that contains the Spatial Reference Identifier for the geography type.

實作

IGeographySink. . :: . .SetSrid(Int32)

備註

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