CancelRequest Method

Cancels any pending request to HealthVault that was initiated with the same connection as this request.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: (1.15.1003.9505)

public void CancelRequest()

Calling this method will cancel any requests that was started using the connection. It is up to the caller to start the request on another thread. Cancelling will cause a HealthServiceRequestCancelledException to be thrown on the thread the request was executed on.