Method FromRegionCodeOrId
FromRegionCodeOrId(String)
Returns the region associated with the specified region code or
region id.
Declaration
public static Region FromRegionCodeOrId(string regionCodeOrId)
Parameters
Type |
Name |
Description |
String |
regionCodeOrId |
The region code or region id used to
search for the region. |
Returns
Type |
Description |
Region |
The region that has its region code or region id equal to
regionCodeOrId , case-insensitive. |
Exceptions
Type |
Condition |
ArgumentException |
If the region with the
specified code or id equal to regionCodeOrId
could not be found.
|
See Also