IBackgroundOperationContext 介面

定義

提供服務方法執行上下文的存取。

public interface class IBackgroundOperationContext : IServiceProvider
public interface IBackgroundOperationContext : IServiceProvider
type IBackgroundOperationContext = interface
    interface IServiceProvider
Public Interface IBackgroundOperationContext
Implements IServiceProvider
實作

屬性

名稱 Description
Arguments

取得上下文屬性中參數的物件值。

IsCancelable

取得或設定一個值,表示該操作是否可以被取消。

IsCancelRequested

會取得或設定一個值,表示使用者是否請求取消該操作。

Progress

取得或設定操作的狀態值。

Status

接收或設定描述當前操作狀態的資訊訊息。

方法

名稱 Description
OnError(Exception)

表示當操作過程中發生錯誤時,會出現一個例外。

事件

名稱 Description
CancelRequested

一個當發生時 IsCancelRequested 才觸發的事件。

適用於