Get a user's location.
Namespace:
Veriplace.ClientAssembly: Veriplace.Client (in Veriplace.Client.dll) Version: 1.7.0.25986 (1.7.0.0)
Syntax
| C# |
|---|
public virtual Location GetLocation( User user, Token accessToken ) |
| Visual Basic (Declaration) |
|---|
Public Overridable Function GetLocation ( _ user As User, _ accessToken As Token _ ) As Location |
| Visual C++ |
|---|
public: virtual Location^ GetLocation( User^ user, Token^ accessToken ) |
Parameters
- user
- Type: Veriplace.Client..::.User
the user
- accessToken
- Type: Veriplace.OAuth..::.Token
the access token permitting the user to be located
Return Value
the user's location
Exceptions
| Exception | Condition |
|---|---|
| Veriplace.Client..::.GetLocationNotPermittedException | if the server refused the location request |
| Veriplace.Client..::.PositionFailureException | if the user's location was unavailable; a previous location may be present in the CachedLocation property of the exception |
| Veriplace.Client..::.UnexpectedException | if there was an unexpected I/O error or OAuth error |