Edit

Share via


LocalEndpoint.BeginGetProvisioningData(AsyncCallback, Object) Method

Definition

Queries the latest provisioning data (advanced).

public:
 IAsyncResult ^ BeginGetProvisioningData(AsyncCallback ^ userCallback, System::Object ^ state);
public IAsyncResult BeginGetProvisioningData (AsyncCallback userCallback, object state);
member this.BeginGetProvisioningData : AsyncCallback * obj -> IAsyncResult
Public Function BeginGetProvisioningData (userCallback As AsyncCallback, state As Object) As IAsyncResult

Parameters

userCallback
AsyncCallback

The method to be called when the asynchronous operation is completed.

state
Object

A user-provided object that distinguishes this particular asynchronous operation from other asynchronous operations.

Returns

An IAsyncResult that references the asynchronous operation.

Exceptions

Thrown when the object is not in correct state to refresh provisioning data.

Remarks

Normally, an application can retrieve the cached ProvisioningData value from the endpoint using the GetProvisioningData() method. The cache is renewed periodically. The application should use this method when it believes that the cached provisioning data is stale or empty. Unlike other methods on the endpoint this method can be invoked even without establishing the endpoint.

Applies to