共用方式為


SqlGeography.STPointN 方法

Returns the specified point in a SqlGeography instance.

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

語法

'宣告
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)> _
Public Function STPointN ( _
    n As Integer _
) As SqlGeography
'用途
Dim instance As SqlGeography 
Dim n As Integer 
Dim returnValue As SqlGeography 

returnValue = instance.STPointN(n)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeography STPointN(
    int n
)
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public:
SqlGeography^ STPointN(
    int n
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STPointN : 
        n:int -> SqlGeography
public function STPointN(
    n : int
) : SqlGeography

參數

傳回值

型別:Microsoft.SqlServer.Types.SqlGeography
A SqlGeography representing the specified point in the calling instance.

備註

If a SqlGeography instance is user-created, the STPointN method returns the point specified by expression by ordering the points in the order in which they were originally input.

If a SqlGeography instance is constructed by the system, STPointN returns the point specified by expression by ordering all the points in the same order they would be output: first by geography instance, then by ring within the instance (if appropriate), and then by point within the ring. This order is deterministic.

If this method is called with a value less than 1, it throws an ArgumentOutOfRangeException.

If this method is called with a value greater than the number of points in the instance, it returns nullnull 參考 (在 Visual Basic 中為 Nothing).

請參閱

參考

SqlGeography 類別

Microsoft.SqlServer.Types 命名空間