다음을 통해 공유


ConfiguredCancelableAsyncEnumerable<T>.WithCancellation 메서드

정의

반복할 때 GetAsyncEnumerator(CancellationToken) 전달할 CancellationToken 설정합니다.

public:
 System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable<T> WithCancellation(System::Threading::CancellationToken cancellationToken);
public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> WithCancellation (System.Threading.CancellationToken cancellationToken);
member this.WithCancellation : System.Threading.CancellationToken -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>
Public Function WithCancellation (cancellationToken As CancellationToken) As ConfiguredCancelableAsyncEnumerable(Of T)

매개 변수

cancellationToken
CancellationToken

사용할 CancellationToken.

반환

구성된 열거형입니다.

설명

이렇게 하면 이 반복에 대해 WithCancellation(CancellationToken) 설정된 이전 CancellationToken 바뀝다.

적용 대상