Compartir a través de


SqlGeography.STIsClosed Método

Determines whether the calling SqlGeography instance is closed.

Espacio de nombres:  Microsoft.SqlServer.Types
Ensamblado:  Microsoft.SqlServer.Types (en Microsoft.SqlServer.Types.dll)

Sintaxis

'Declaración
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function STIsClosed As SqlBoolean
'Uso
Dim instance As SqlGeography 
Dim returnValue As SqlBoolean 

returnValue = instance.STIsClosed()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlBoolean STIsClosed()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlBoolean STIsClosed()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member STIsClosed : unit -> SqlBoolean
public function STIsClosed() : SqlBoolean

Valor devuelto

Tipo: System.Data.SqlTypes.SqlBoolean
A SqlBoolean value indicating whether the start and end points of the SqlGeography instance are the same. Returns true if both points are the same. Otherwise, false.

Comentarios

This method returns false if any figures of a geography instance are points, or if the instance is empty.

This method returns true for geography collection types if each contained SqlGeography instance is closed.

All Polygon instances are considered closed.

Vea también

Referencia

SqlGeography Clase

Espacio de nombres Microsoft.SqlServer.Types