共用方式為


SpatialOperations.Distance 方法 (Geography, Geography)

表示地理距離。

命名空間:  System.Spatial
組件:  System.Spatial (在 System.Spatial.dll 中)

語法

'宣告
Public Overridable Function Distance ( _
    operand1 As Geography, _
    operand2 As Geography _
) As Double
'用途
Dim instance As SpatialOperations
Dim operand1 As Geography
Dim operand2 As Geography
Dim returnValue As Double

returnValue = instance.Distance(operand1, _
    operand2)
public virtual double Distance(
    Geography operand1,
    Geography operand2
)
public:
virtual double Distance(
    Geography^ operand1, 
    Geography^ operand2
)
abstract Distance : 
        operand1:Geography * 
        operand2:Geography -> float 
override Distance : 
        operand1:Geography * 
        operand2:Geography -> float 
public function Distance(
    operand1 : Geography, 
    operand2 : Geography
) : double

參數

傳回值

型別:System.Double
運算結果。

請參閱

參考

SpatialOperations 類別

Distance 多載

System.Spatial 命名空間