Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SqlGeometry.STIsClosed Method

Determines whether the start and end points of the calling SqlGeometry are the same.

Namespace:  Microsoft.SqlServer.Types
Assembly:  Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
'Declaration
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
PublicFunctionSTIsClosedAsSqlBoolean
'Usage
DiminstanceAsSqlGeometryDimreturnValueAsSqlBooleanreturnValue = instance.STIsClosed()

Return Value

Type: System.Data.SqlTypes.SqlBoolean
Returns true if the start and end points of the given SqlGeometry instance are the same. Returns false if the instance is not closed, if any figures of the instance are points, or if the instance is empty.Returns true for geometry collection types if each contained SqlGeometry instance is closed. Otherwise, false.

All Polygon instances are considered closed.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.