Share via


PlaceMonitorSimulator.GetKnownPlaceAsync Method

Returns place matching the given place id. This method can be used to return any type of places: home, work, known and frequent.

Namespace: Lumia.Sense.Testing
Assembly: Lumia.Sense.Testing (in Lumia.Sense.Testing.dll) Version: 255.255.255.255

Syntax

public IAsyncOperation<Place> GetKnownPlaceAsync(
    uint id
)
'Declaration
Public Function GetKnownPlaceAsync ( 
    id As UInteger
) As IAsyncOperation(Of Place)
public:
virtual IAsyncOperation<Place^>^ GetKnownPlaceAsync(
    [InAttribute] unsigned int id
) sealed
function GetKnownPlaceAsync(id);

Parameters

Return Value

Type: IAsyncOperation<Place>
Queried Place.

Implements

IPlaceMonitor.GetKnownPlaceAsync(UInt32)

Exceptions

Exception Condition
COMException All errors are thrown as instances of COMException. To get details about the error pass the HResult property of the exception to GetSenseError(Int32). This method can return the following SenseError enumeration values: SensorDeactivated, GeneralFailure, SenseDisabled, LocationDisabled

See Also

PlaceMonitorSimulator Class

PlaceMonitorSimulator.PlaceMonitorSimulator Members

Lumia.Sense.Testing Namespace