Metodo GeographyOperationsExtensions.Distance
Determina la distanza della geografia.
Spazio dei nomi System.Spatial
Assembly: System.Spatial (in System.Spatial.dll)
Sintassi
'Dichiarazione
<ExtensionAttribute> _
Public Shared Function Distance ( _
operand1 As Geography, _
operand2 As Geography _
) As Nullable(Of Double)
'Utilizzo
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>
Parametri
- operand1
Tipo: System.Spatial.Geography
Primo operando.
- operand2
Tipo: System.Spatial.Geography
Secondo operando.
Valore restituito
Tipo: System.Nullable<Double>
Risultato dell'operazione.
Nota sull'utilizzo
In Visual Basic e C# questo metodo può essere chiamato come metodo di istanza su qualsiasi oggetto di tipo Geography. Quando si utilizza la sintassi del metodo di istanza per chiamare questo metodo, omettere il primo parametro. Per ulteriori informazioni, vedere https://msdn.microsoft.com/it-it/library/bb384936(v=vs.103) o https://msdn.microsoft.com/it-it/library/bb383977(v=vs.103).