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);

Parameters

criteria
FindCriteria

The criteria for finding services.

Returns

An asynchronous find task operation.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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);

Parameters

criteria
FindCriteria

The criteria for finding services.

cancellationToken
CancellationToken

The cancellation token for notification propagation.

Returns

An asynchronous find task operation.

Exceptions

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1