SqlSpatialFunctions.RingN Method (DbGeography, Nullable<Int32>)

 

Returns the specified ring of the SqlGeography instance: 1 ≤ n ≤ NumRings().

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

[DbFunctionAttribute("SqlServer", "RINGN")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "index")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geographyValue")]
public static DbGeography RingN(
	DbGeography geographyValue,
	Nullable<int> index
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value.

index
Type: System.Nullable<Int32>

An int expression between 1 and the number of rings in a polygon instance.

Return Value

Type: System.Data.Entity.Spatial.DbGeography

A SqlGeography object that represents the ring specified by n.