共用方式為


DbGeography.LineFromText(String, Int32) 方法

定義

根據指定的已知文字值和座標系統識別項 (SRID),建立新的 DbGeography 線值。

public:
 static System::Data::Spatial::DbGeography ^ LineFromText(System::String ^ lineWellKnownText, int coordinateSystemId);
public static System.Data.Spatial.DbGeography LineFromText (string lineWellKnownText, int coordinateSystemId);
static member LineFromText : string * int -> System.Data.Spatial.DbGeography
Public Shared Function LineFromText (lineWellKnownText As String, coordinateSystemId As Integer) As DbGeography

參數

lineWellKnownText
String

包含地理位置值之已知文字表示的字串。

coordinateSystemId
Int32

新的 DbGeography 值應該使用的座標系統的識別項。

傳回

新的 DbGeography 值,由含有指定的座標系統識別項的已知文字值所定義。

例外狀況

lineWellKnownText

coordinateSystemId

適用於