GeoCoordinateTryCreate Method
Tries to create a new
GeoCoordinate instance from the
arguments and returns
null if the creation fails.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public static GeoCoordinate? TryCreate(
double latitude,
double longitude,
float? uncertainty = null
)
Public Shared Function TryCreate (
latitude As Double,
longitude As Double,
Optional uncertainty As Single? = Nothing
) As GeoCoordinate
public:
static GeoCoordinate^ TryCreate(
double latitude,
double longitude,
Nullable<float> uncertainty = nullptr
)
static member TryCreate :
latitude : float *
longitude : float *
?uncertainty : Nullable<float32>
(* Defaults:
let _uncertainty = defaultArg uncertainty null
*)
-> GeoCoordinate
- latitude Double
- Latitude (value between -90 and 90).
- longitude Double
- Longitude (value between -180 and 180).
- uncertainty NullableSingle (Optional)
- The amount of uncertainty in the location as a
value in meters, or null to leave this unspecified.
GeoCoordinateThe newly created
GeoCoordinate instance, or
null
if one of the arguments is out of range.