WritingProgressChangedEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 WritingProgressChangedEventArgs 類別的新執行個體。
public:
WritingProgressChangedEventArgs(System::Windows::Documents::Serialization::WritingProgressChangeLevel writingLevel, int number, int progressPercentage, System::Object ^ state);
public WritingProgressChangedEventArgs(System.Windows.Documents.Serialization.WritingProgressChangeLevel writingLevel, int number, int progressPercentage, object state);
new System.Windows.Documents.Serialization.WritingProgressChangedEventArgs : System.Windows.Documents.Serialization.WritingProgressChangeLevel * int * int * obj -> System.Windows.Documents.Serialization.WritingProgressChangedEventArgs
Public Sub New (writingLevel As WritingProgressChangeLevel, number As Integer, progressPercentage As Integer, state As Object)
參數
- writingLevel
- WritingProgressChangeLevel
一個列舉值,用來指定變更事件的進度範圍,例如整個多文件序列、單一文件或單一頁面。
- number
- Int32
根據定義的 writingLevel範圍,文件數量或已撰寫的頁數。
- progressPercentage
- Int32
是寫入資料的百分比。
- state
- Object
使用者提供的物件,用來識別寫入操作。
備註
使用者提供的 state 參數是傳給 WriteAsync 方法的物件,用以識別非同步寫入操作。