DiscoveryClient.FindTaskAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Begins an asynchronous find task operation.
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. |
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
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 |
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
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: