Get a user's location.

Namespace:  Veriplace.Client
Assembly:  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

ExceptionCondition
Veriplace.Client..::.GetLocationNotPermittedExceptionif the server refused the location request
Veriplace.Client..::.PositionFailureExceptionif the user's location was unavailable; a previous location may be present in the CachedLocation property of the exception
Veriplace.Client..::.UnexpectedExceptionif there was an unexpected I/O error or OAuth error

See Also