SqlGeometry.STPointN 方法 (Int32)
返回在指定的点 SqlGeometry 实例。
命名空间: Microsoft.SqlServer.Types
程序集: Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)
语法
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeometry STPointN(
int n
)
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
SqlGeometry^ STPointN(
int n
)
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)>]
member STPointN :
n:int -> SqlGeometry
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := True)>
Public Function STPointN (
n As Integer
) As SqlGeometry
参数
n
Type: System.Int32int 介于 1 和中点的数量之间的表达式 SqlGeometry 实例。
返回值
Type: Microsoft.SqlServer.Types.SqlGeometry
一个 SqlGeometry ,表示调用实例中的指定的点。
备注
如果 SqlGeometry 实例是用户创建的 STPointN 返回通过点进行排序的原始输入顺序的顺序由表达式指定的点。
如果 SqlGeometry 构造实例时,系统 STPointN 返回所有通过点进行排序会输出它们的相同顺序由表达式指定的点︰ 首先按几何图形、 然后最后按环中 geometry (如果适用),然后在环内的点。 此顺序是确定的。
如果使用小于 1 的值来调用此方法,则会引发 ArgumentOutOfRangeException。
如果使用大于实例中点数的值来调用此方法,则返回 Null。
另请参阅
SqlGeometry 类
Microsoft.SqlServer.Types 命名空间
返回页首