共用方式為


DiscoveryClient.ResolveTaskAsync 方法

定義

開始非同步解析工作作業。

多載

ResolveTaskAsync(ResolveCriteria)

使用指定準則開始非同步解析工作作業。

ResolveTaskAsync(ResolveCriteria, CancellationToken)

使用指定的準則和取消語彙基元,開始非同步解析工作作業。

ResolveTaskAsync(ResolveCriteria)

使用指定準則開始非同步解析工作作業。

public:
 System::Threading::Tasks::Task<System::ServiceModel::Discovery::ResolveResponse ^> ^ ResolveTaskAsync(System::ServiceModel::Discovery::ResolveCriteria ^ criteria);
public System.Threading.Tasks.Task<System.ServiceModel.Discovery.ResolveResponse> ResolveTaskAsync (System.ServiceModel.Discovery.ResolveCriteria criteria);
member this.ResolveTaskAsync : System.ServiceModel.Discovery.ResolveCriteria -> System.Threading.Tasks.Task<System.ServiceModel.Discovery.ResolveResponse>
Public Function ResolveTaskAsync (criteria As ResolveCriteria) As Task(Of ResolveResponse)

參數

criteria
ResolveCriteria

比對服務端點的準則。

傳回

非同步解析工作作業。

適用於

ResolveTaskAsync(ResolveCriteria, CancellationToken)

使用指定的準則和取消語彙基元,開始非同步解析工作作業。

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

參數

criteria
ResolveCriteria

比對服務端點的準則。

cancellationToken
CancellationToken

通知傳播的取消語彙基元。

傳回

非同步解析工作作業。

例外狀況

取消權杖已取消。 此例外狀況會儲存在傳回的工作中。

適用於