SqlSpatialFunctions.InstanceOf 方法

定義

測試 SqlGeography 實例是否與指定類型相同。

多載

名稱 Description
InstanceOf(DbGeometry, String)

測試 SqlGeometry 實例是否與指定類型相同。

InstanceOf(DbGeography, String)

測試 SqlGeography 實例是否與指定類型相同。

InstanceOf(DbGeometry, String)

測試 SqlGeometry 實例是否與指定類型相同。

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)

參數

geometryValue
DbGeometry

幾何數值。

geometryTypeName
String

一串字串指定地理類型階層中暴露的 12 種類型之一。

傳回

一串字串指定地理類型階層中暴露的 12 種類型之一。

屬性

適用於

InstanceOf(DbGeography, String)

測試 SqlGeography 實例是否與指定類型相同。

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)

參數

geographyValue
DbGeography

地理價值。

geometryTypeName
String

一串字串指定地理類型階層中暴露的 12 種類型之一。

傳回

一串字串指定地理類型階層中暴露的 12 種類型之一。

屬性

適用於