SqlGeometry.InstanceOf(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tests if the SqlGeometry instance is the same as the specified type.
[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)]
public System.Data.SqlTypes.SqlBoolean InstanceOf (string geometryType);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=true)>]
member this.InstanceOf : string -> System.Data.SqlTypes.SqlBoolean
Public Function InstanceOf (geometryType As String) As SqlBoolean
Parameters
- geometryType
- String
Specifies the type of geometry that the calling SqlGeometry will be compared to.
Returns
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.
- Attributes