SpatialEdmFunctions.Longitude(DbExpression) 方法

定義

建立 DbFunctionExpression 一個,能用指定的參數呼叫典型的「經度」函數,該參數必須具有 Edm.Geography 結果型別。 表達式的結果類型為Edm.Double。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ Longitude(System::Data::Common::CommandTrees::DbExpression ^ geographyValue);
public static System.Data.Common.CommandTrees.DbFunctionExpression Longitude(this System.Data.Common.CommandTrees.DbExpression geographyValue);
static member Longitude : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function Longitude (geographyValue As DbExpression) As DbFunctionExpression

參數

geographyValue
DbExpression

一個表達式,指定應從何處取得經度值的地理點值。

傳回

一個新的 DbFunctionExpression 回傳 的經度值,若geographyValue不是點則回傳。geographyValuenull

例外狀況

geographyValue

geographyValue

適用於