英語で読む

次の方法で共有


AsyncServiceCreatorWithProgressCallback Delegate

Definition

The callback that is invoked when an instance of the service is needed. This is called only one time, and the result is cached.

C++
public delegate System::Threading::Tasks::Task<System::Object ^> ^ AsyncServiceCreatorWithProgressCallback(IAsyncServiceContainer ^ container, CancellationToken cancellationToken, Type ^ serviceType, IProgress<ServiceProgressData ^> ^ progress);

Parameters

container
IAsyncServiceContainer

The service container.

cancellationToken
CancellationToken

The cancellation token.

serviceType
Type

The type of the service to get.

progress
IProgress<ServiceProgressData>

The progress marker.

Return Value

A task that returns the service.

Applies to

製品 バージョン
Visual Studio SDK 2015, 2017, 2019, 2022