HealthServiceConnection.CancelAllRequests HealthServiceConnection.CancelAllRequests HealthServiceConnection.CancelAllRequests Property

Definition

Cancels any pending request to HealthVault that was initiated with this connection instance and prevents any new requests from being made.

public bool CancelAllRequests { get; set; }
member this.CancelAllRequests : bool with get, set
Public Property CancelAllRequests As Boolean

Property Value

Remarks

Setting this property to true will cancel any requests that was started using this connection and will prevent new requests from being made. 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.

If you want to start reusing the connection set the property to false.

Applies to