DiscoveryClient.FindTaskAsync Method
Definition
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.
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
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
An asynchronous find task operation.
Exceptions
The cancellation token was canceled. This exception is stored into the returned task.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor