SqlGeometry.STNumGeometries 메서드

SQL Server 2012

Returns the number of SqlGeometry that comprise a SqlGeometry instance.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlInt32 STNumGeometries()

반환 값

유형: System.Data.SqlTypes.SqlInt32
Returns 1 if the SqlGeometry instance is not a MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection instance, and 0 if the SqlGeometry instance is empty.

If a geometry collection has nested empty elements, STNumGeometries will not return 0. Though the elements in the geometry collection instance are empty, the instance itself is not an empty set.

표시: