Langue

SqlGeography.InstanceOf(String) Méthode

Définition

Teste si l’instance SqlGeography est identique au type spécifié.

[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

Paramètres

geometryType
String

Chaîne qui spécifie l’un des 12 types exposés dans la hiérarchie de types geography.

Retours

Valeur SqlBoolean qui indique si l’instance SqlGeography est identique au type geometry spécifié. Retourne true si le type d’une instance geography est identique au type spécifié, ou si le type spécifié est un ancêtre du type d’instance ; sinon, retourne false.

Attributs

S’applique à