共用方式為


SqlGeographyBuilder.AddLine 方法 (Double, Double)

Constructs additional points in a geography type figure.

命名空間:  Microsoft.SqlServer.Types
組件:  Microsoft.SqlServer.Types (在 Microsoft.SqlServer.Types.dll 中)

語法

'宣告
Public Sub AddLine ( _
    latitude As Double, _
    longitude As Double _
)
'用途
Dim instance As SqlGeographyBuilder 
Dim latitude As Double 
Dim longitude As Double

instance.AddLine(latitude, longitude)
public void AddLine(
    double latitude,
    double longitude
)
public:
void AddLine(
    double latitude, 
    double longitude
)
member AddLine : 
        latitude:float * 
        longitude:float -> unit
public function AddLine(
    latitude : double, 
    longitude : double
)

參數

  • latitude
    型別:System.Double
    A double that specifies the latitude of a point in a geography figure.
  • longitude
    型別:System.Double
    A double that specifies the longitude of a point in a geography figure.

備註

Method is used together with BeginFigure() to construct the points of a geography type figure. BeginFigure() can only construct the starting endpoint for a geography type figure. Use AddLine() to construct additional points for the figure.

Method throws a FormatException when there is invalid input.

請參閱

參考

SqlGeographyBuilder 類別

AddLine 多載

Microsoft.SqlServer.Types 命名空間