Bearbeiten

Freigeben über


DiscoveryClient.FindAsync Method

Definition

Begins an asynchronous find operation.

Overloads

FindAsync(FindCriteria, Object)

Begins an asynchronous find operation with the specified criteria and user defined state object.

FindAsync(FindCriteria)

Begins an asynchronous find operation with the specified criteria.

FindAsync(FindCriteria, Object)

Begins an asynchronous find operation with the specified criteria and user defined state object.

public:
 void FindAsync(System::ServiceModel::Discovery::FindCriteria ^ criteria, System::Object ^ userState);
public void FindAsync (System.ServiceModel.Discovery.FindCriteria criteria, object userState);
member this.FindAsync : System.ServiceModel.Discovery.FindCriteria * obj -> unit
Public Sub FindAsync (criteria As FindCriteria, userState As Object)

Parameters

criteria
FindCriteria

The criteria for finding services.

userState
Object

A user specified object to identify the asynchronous find operation.

Remarks

If the userState parameter is null, the find operation cannot be canceled.

Applies to

FindAsync(FindCriteria)

Begins an asynchronous find operation with the specified criteria.

public:
 void FindAsync(System::ServiceModel::Discovery::FindCriteria ^ criteria);
public void FindAsync (System.ServiceModel.Discovery.FindCriteria criteria);
member this.FindAsync : System.ServiceModel.Discovery.FindCriteria -> unit
Public Sub FindAsync (criteria As FindCriteria)

Parameters

criteria
FindCriteria

The criteria for finding services.

Remarks

Find operations initiated by calling this method cannot be canceled.

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by Find(FindCriteria).

Applies to