SqlGeometry.InstanceOf 메서드

SQL Server 2012

Tests if the SqlGeometry instance is the same as the specified type.

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

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlBoolean InstanceOf(
	string geometryType

매개 변수

유형: System.String
Specifies the type of geometry that the calling SqlGeometry will be compared to.

반환 값

유형: System.Data.SqlTypes.SqlBoolean
A SqlBoolean value indicating if the calling SqlGeometry is of the specified geometry type. Returns true if the type of a SqlGeometry instance is the same as the specified type, or if the specified type is an ancestor of the instance type. Otherwise, returns false.

The input for the method must be one of the following: Geometry, Point, Curve, LineString, Surface, Polygon, GeometryCollection, MultiSurface, MultiPolygon, MultiCurve, MultiLineString, and MultiPoint. This method throws an ArgumentException if any other strings are used for the input.

커뮤니티 추가 항목