Share via


SqlGeography.STGeometryN(Int32) Method

Definition

Returns a specified geography element in a GeometryCollection or one of its subtypes.

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)]
public Microsoft.SqlServer.Types.SqlGeography STGeometryN (int n);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)>]
member this.STGeometryN : int -> Microsoft.SqlServer.Types.SqlGeography
Public Function STGeometryN (n As Integer) As SqlGeography

Parameters

n
Int32

An int expression between 1 and the number of SqlGeography instances in the GeometryCollection.

Returns

A SqlGeography element from the specified instance in the GeometryCollection.

Attributes

Applies to