Initializes a Geocode instance from a string. Assumes the string is of the format:
"{0},{1}" . For example, "20.52,39.20"
Namespace:
Endeca.DataAssembly: Endeca.Data (in Endeca.Data.dll) Version: 2.1.1.0 (2.1.1.620)
Syntax
C# |
---|
public static Geocode Parse( string value ) |
Visual Basic (Declaration) |
---|
Public Shared Function Parse ( _ value As String _ ) As Geocode |
Visual C++ |
---|
public: static Geocode^ Parse( String^ value ) |
Parameters
- value
- Type: System..::.String
String with two numbers separated by a comma
Return Value
The initializes Geocode instanceExceptions
Exception | Condition |
---|---|
System..::.ArgumentException | if value is null or empty. |
System..::.FormatException | If value is not a valid representation of a Geocode. |