次の方法で共有


GeographyOperationsExtensions.Distance メソッド

地理の距離を決定します。

名前空間:  System.Spatial
アセンブリ:  System.Spatial (System.Spatial.dll)

構文

'宣言
<ExtensionAttribute> _
Public Shared Function Distance ( _
    operand1 As Geography, _
    operand2 As Geography _
) As Nullable(Of Double)
'使用
Dim operand1 As Geography
Dim operand2 As Geography
Dim returnValue As Nullable(Of Double)

returnValue = operand1.Distance(operand2)
public static Nullable<double> Distance(
    this Geography operand1,
    Geography operand2
)
[ExtensionAttribute]
public:
static Nullable<double> Distance(
    Geography^ operand1, 
    Geography^ operand2
)
static member Distance : 
        operand1:Geography * 
        operand2:Geography -> Nullable<float> 
public static function Distance(
    operand1 : Geography, 
    operand2 : Geography
) : Nullable<double>

パラメーター

戻り値

型: System.Nullable<Double>
操作の結果。

使用に関するメモ

Visual Basic および C# では、このメソッドを型 Geography の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。このメソッドを呼び出すためにインスタンス メソッドの構文を使う場合は、最初のパラメーターを省略してください。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.103)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.103)」を参照してください。

関連項目

参照

GeographyOperationsExtensions クラス

System.Spatial 名前空間