Operation Class
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.
Represents a long-running operation.
public abstract class Operation
type Operation = class
Public MustInherit Class Operation
- Inheritance
-
Operation
- Derived
Constructors
Operation() |
Properties
HasCompleted |
Returns true if the long-running operation completed. |
Id |
Gets an ID representing the operation that can be used to poll for the status of the long-running operation. There are cases that operation id is not available, we return "NOT_SET" for unavailable operation id. |
Methods
GetRawResponse() |
The last HTTP response received from the server. |
GetRehydrationToken() |
Get a token that can be used to rehydrate the operation. |
Rehydrate(HttpPipeline, RehydrationToken, ClientOptions) |
Rehydrates an operation from a RehydrationToken. |
Rehydrate<T>(HttpPipeline, RehydrationToken, ClientOptions) |
Rehydrates an operation from a RehydrationToken. |
RehydrateAsync(HttpPipeline, RehydrationToken, ClientOptions) |
Rehydrates an operation from a RehydrationToken. |
RehydrateAsync<T>(HttpPipeline, RehydrationToken, ClientOptions) |
Rehydrates an operation from a RehydrationToken. |
UpdateStatus(CancellationToken) |
Calls the server to get updated status of the long-running operation. |
UpdateStatusAsync(CancellationToken) |
Calls the server to get updated status of the long-running operation. |
WaitForCompletionResponse(CancellationToken) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionResponse(DelayStrategy, CancellationToken) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionResponse(TimeSpan, CancellationToken) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionResponseAsync(CancellationToken) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionResponseAsync(DelayStrategy, CancellationToken) |
Periodically calls the server till the long-running operation completes. |
WaitForCompletionResponseAsync(TimeSpan, CancellationToken) |
Periodically calls the server till the long-running operation completes. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應