SqlSpatialServices.GetLength 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| GetLength(DbGeometry) |
傳回可為 null 的雙精度浮點數值,指出指定的 DbGeometry 值的長度,如果值不能代表曲線,就可能為 null。 |
| GetLength(DbGeography) |
傳回可為 null 的雙精度浮點數值,指出指定的 DbGeography 值的長度,如果值不能代表曲線,就可能為 null。 |
GetLength(DbGeometry)
傳回可為 null 的雙精度浮點數值,指出指定的 DbGeometry 值的長度,如果值不能代表曲線,就可能為 null。
public override Nullable<double> GetLength(System.Data.Entity.Spatial.DbGeometry geometryValue);
override this.GetLength : System.Data.Entity.Spatial.DbGeometry -> Nullable<double>
Public Overrides Function GetLength (geometryValue As DbGeometry) As Nullable(Of Double)
參數
- geometryValue
- DbGeometry
幾何值,其不需要表現曲線。
傳回
指定的 DbGeometry 值的長度。
適用於
GetLength(DbGeography)
傳回可為 null 的雙精度浮點數值,指出指定的 DbGeography 值的長度,如果值不能代表曲線,就可能為 null。
public override Nullable<double> GetLength(System.Data.Entity.Spatial.DbGeography geographyValue);
override this.GetLength : System.Data.Entity.Spatial.DbGeography -> Nullable<double>
Public Overrides Function GetLength (geographyValue As DbGeography) As Nullable(Of Double)
參數
- geographyValue
- DbGeography
地理位置值,其不需要表現曲線。
傳回
指定的 DbGeography 值的長度。