다음을 통해 공유


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/ko-kr/library/bb384936(v=vs.103) 또는 https://msdn.microsoft.com/ko-kr/library/bb383977(v=vs.103)을(를) 참조하십시오.

참고 항목

참조

GeographyOperationsExtensions 클래스

System.Spatial 네임스페이스