SqlSpatialFunctions.InstanceOf Método

Definição

Testa se a instância de SqlGeography é a mesma que o tipo especificado.Tests if the SqlGeography instance is the same as the specified type.

Sobrecargas

InstanceOf(DbGeometry, String)

Testa se a instância de SqlGeometry é a mesma que o tipo especificado.Tests if the SqlGeometry instance is the same as the specified type.

InstanceOf(DbGeography, String)

Testa se a instância de SqlGeography é a mesma que o tipo especificado.Tests if the SqlGeography instance is the same as the specified type.

InstanceOf(DbGeometry, String)

Testa se a instância de SqlGeometry é a mesma que o tipo especificado.Tests if the SqlGeometry instance is the same as the specified type.

public:
 static Nullable<bool> InstanceOf(System::Data::Spatial::DbGeometry ^ geometryValue, System::String ^ geometryTypeName);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")]
public static bool? InstanceOf (System.Data.Spatial.DbGeometry geometryValue, string geometryTypeName);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")>]
static member InstanceOf : System.Data.Spatial.DbGeometry * string -> Nullable<bool>
Public Shared Function InstanceOf (geometryValue As DbGeometry, geometryTypeName As String) As Nullable(Of Boolean)

Parâmetros

geometryValue
DbGeometry

O valor de geometria.The geometry value.

geometryTypeName
String

Uma cadeia de caracteres que especifica um dos 12 tipos expostos na hierarquia de tipos de geografia.A string that specifies one of the 12 types exposed in the geography type hierarchy.

Retornos

Nullable<Boolean>

Uma cadeia de caracteres que especifica um dos 12 tipos expostos na hierarquia de tipos de geografia.A string that specifies one of the 12 types exposed in the geography type hierarchy.

Atributos

Aplica-se a

InstanceOf(DbGeography, String)

Testa se a instância de SqlGeography é a mesma que o tipo especificado.Tests if the SqlGeography instance is the same as the specified type.

public:
 static Nullable<bool> InstanceOf(System::Data::Spatial::DbGeography ^ geographyValue, System::String ^ geometryTypeName);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")]
public static bool? InstanceOf (System.Data.Spatial.DbGeography geographyValue, string geometryTypeName);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "INSTANCEOF")>]
static member InstanceOf : System.Data.Spatial.DbGeography * string -> Nullable<bool>
Public Shared Function InstanceOf (geographyValue As DbGeography, geometryTypeName As String) As Nullable(Of Boolean)

Parâmetros

geographyValue
DbGeography

O valor de geografia.The geography value.

geometryTypeName
String

Uma cadeia de caracteres que especifica um dos 12 tipos expostos na hierarquia de tipos de geografia.A string that specifies one of the 12 types exposed in the geography type hierarchy.

Retornos

Nullable<Boolean>

Uma cadeia de caracteres que especifica um dos 12 tipos expostos na hierarquia de tipos de geografia.A string that specifies one of the 12 types exposed in the geography type hierarchy.

Atributos

Aplica-se a