PlaceMonitor.DeactivateAsync Method
Closes the communication channel with underlying sensor. Connection must be closed whenever application is put to background.
Namespace: Lumia.Sense
Assembly: Lumia.Sense (in Lumia.Sense.dll) Version: 255.255.255.255
Syntax
public IAsyncAction DeactivateAsync()
'Declaration
Public Function DeactivateAsync As IAsyncAction
public:
virtual IAsyncAction^ DeactivateAsync() sealed
function DeactivateAsync();
Return Value
Type: IAsyncAction
Returns an IAsyncAction object that is used to control the asynchronous operation.
Implements
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: GeneralFailure |