DiscoveryClient.FindTaskAsync Method

Definition

Begins an asynchronous find task operation.

Overloads

FindTaskAsync(FindCriteria)

Begins an asynchronous find task operation with the specified criteria.

FindTaskAsync(FindCriteria, CancellationToken)

Begins an asynchronous find task operation with the specified criteria and cancellation token object.

FindTaskAsync(FindCriteria)

Begins an asynchronous find task operation with the specified criteria.

public:
 System::Threading::Tasks::Task<System::ServiceModel::Discovery::FindResponse ^> ^ FindTaskAsync(System::ServiceModel::Discovery::FindCriteria ^ criteria);
public System.Threading.Tasks.Task<System.ServiceModel.Discovery.FindResponse> FindTaskAsync (System.ServiceModel.Discovery.FindCriteria criteria);
member this.FindTaskAsync : System.ServiceModel.Discovery.FindCriteria -> System.Threading.Tasks.Task<System.ServiceModel.Discovery.FindResponse>
Public Function FindTaskAsync (criteria As FindCriteria) As Task(Of FindResponse)

Parameters

criteria
FindCriteria

The criteria for finding services.

Returns

Task<FindResponse>

An asynchronous find task operation.

Applies to

FindTaskAsync(FindCriteria, CancellationToken)

Begins an asynchronous find task operation with the specified criteria and cancellation token object.

public:
 System::Threading::Tasks::Task<System::ServiceModel::Discovery::FindResponse ^> ^ FindTaskAsync(System::ServiceModel::Discovery::FindCriteria ^ criteria, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.ServiceModel.Discovery.FindResponse> FindTaskAsync (System.ServiceModel.Discovery.FindCriteria criteria, System.Threading.CancellationToken cancellationToken);
member this.FindTaskAsync : System.ServiceModel.Discovery.FindCriteria * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ServiceModel.Discovery.FindResponse>
Public Function FindTaskAsync (criteria As FindCriteria, cancellationToken As CancellationToken) As Task(Of FindResponse)

Parameters

criteria
FindCriteria

The criteria for finding services.

cancellationToken
CancellationToken

The cancellation token for notification propagation.

Returns

Task<FindResponse>

An asynchronous find task operation.

Applies to