다음을 통해 공유


SqlGeographyBuilder.AddLine 메서드 (Double, Double, Nullable<Double>, Nullable<Double>)

Constructs additional points in a geography type figure.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

구문

‘선언
Public Overridable Sub AddLine ( _
    latitude As Double, _
    longitude As Double, _
    z As Nullable(Of Double), _
    m As Nullable(Of Double) _
)
‘사용 방법
Dim instance As SqlGeographyBuilder 
Dim latitude As Double 
Dim longitude As Double 
Dim z As Nullable(Of Double)
Dim m As Nullable(Of Double)

instance.AddLine(latitude, longitude, _
    z, m)
public virtual void AddLine(
    double latitude,
    double longitude,
    Nullable<double> z,
    Nullable<double> m
)
public:
virtual void AddLine(
    double latitude, 
    double longitude, 
    Nullable<double> z, 
    Nullable<double> m
)
abstract AddLine : 
        latitude:float * 
        longitude:float * 
        z:Nullable<float> * 
        m:Nullable<float> -> unit  
override AddLine : 
        latitude:float * 
        longitude:float * 
        z:Nullable<float> * 
        m:Nullable<float> -> unit
public function AddLine(
    latitude : double, 
    longitude : double, 
    z : Nullable<double>, 
    m : Nullable<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.
  • z
    유형: System.Nullable<Double>
    A double that specifies the altitude of a point in a geography figure. Is Nullable.

구현

IGeographySink.AddLine(Double, Double, Nullable<Double>, Nullable<Double>)

주의

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 네임스페이스