SqlSpatialFunctions.InstanceOf Metoda

Definicja

Sprawdza, czy wystąpienie SqlGeography jest takie samo jak określony typ.

Przeciążenia

InstanceOf(DbGeometry, String)

Sprawdza, czy wystąpienie SqlGeometry jest takie samo jak określony typ.

InstanceOf(DbGeography, String)

Sprawdza, czy wystąpienie SqlGeography jest takie samo jak określony typ.

InstanceOf(DbGeometry, String)

Sprawdza, czy wystąpienie SqlGeometry jest takie samo jak określony typ.

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)

Parametry

geometryValue
DbGeometry

Wartość geometrii.

geometryTypeName
String

Ciąg określający jeden z 12 typów ujawnionych w hierarchii typów geograficznych.

Zwraca

Nullable<Boolean>

Ciąg określający jeden z 12 typów ujawnionych w hierarchii typów geograficznych.

Atrybuty

Dotyczy

InstanceOf(DbGeography, String)

Sprawdza, czy wystąpienie SqlGeography jest takie samo jak określony typ.

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)

Parametry

geographyValue
DbGeography

Wartość geografii.

geometryTypeName
String

Ciąg określający jeden z 12 typów ujawnionych w hierarchii typów geograficznych.

Zwraca

Nullable<Boolean>

Ciąg określający jeden z 12 typów ujawnionych w hierarchii typów geograficznych.

Atrybuty

Dotyczy