Freigeben über


GeometryOperationsExtensions.Distance-Methode

Bestimmt den Abstand der Geometrie.

Namespace:  System.Spatial
Assembly:  System.Spatial (in System.Spatial.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Distance ( _
    operand1 As Geometry, _
    operand2 As Geometry _
) As Nullable(Of Double)
'Usage
Dim operand1 As Geometry
Dim operand2 As Geometry
Dim returnValue As Nullable(Of Double)

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

Parameter

Rückgabewert

Typ: System.Nullable<Double>
Das Ergebnis des Vorgangs.

Hinweis zur Verwendung

In Visual Basic und C# können Sie die Methode als Instanzenmethode für jedes Objekt vom Typ Geometry aufrufen. Wenn Sie Instanzmethodensyntax zum Aufruf dieser Methode verwenden, vernachlässigen Sie den ersten Parameter. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.103) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.103).

Siehe auch

Verweis

GeometryOperationsExtensions Klasse

System.Spatial-Namespace