forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystem.ComponentModel.EventBasedAsync.cs
More file actions
77 lines (76 loc) · 4.58 KB
/
System.ComponentModel.EventBasedAsync.cs
File metadata and controls
77 lines (76 loc) · 4.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ------------------------------------------------------------------------------
// Changes to this file must follow the http://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace System.ComponentModel
{
public partial class AsyncCompletedEventArgs : System.EventArgs
{
public AsyncCompletedEventArgs(System.Exception? error, bool cancelled, object? userState) { }
public bool Cancelled { get { throw null; } }
public System.Exception? Error { get { throw null; } }
public object? UserState { get { throw null; } }
protected void RaiseExceptionIfNecessary() { }
}
public delegate void AsyncCompletedEventHandler(object? sender, System.ComponentModel.AsyncCompletedEventArgs e);
public sealed partial class AsyncOperation
{
internal AsyncOperation() { }
public System.Threading.SynchronizationContext SynchronizationContext { get { throw null; } }
public object? UserSuppliedState { get { throw null; } }
~AsyncOperation() { }
public void OperationCompleted() { }
public void Post(System.Threading.SendOrPostCallback d, object? arg) { }
public void PostOperationCompleted(System.Threading.SendOrPostCallback d, object? arg) { }
}
public static partial class AsyncOperationManager
{
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public static System.Threading.SynchronizationContext SynchronizationContext { get { throw null; } set { } }
public static System.ComponentModel.AsyncOperation CreateOperation(object? userSuppliedState) { throw null; }
}
public partial class BackgroundWorker : System.ComponentModel.Component
{
public BackgroundWorker() { }
public bool CancellationPending { get { throw null; } }
public bool IsBusy { get { throw null; } }
public bool WorkerReportsProgress { get { throw null; } set { } }
public bool WorkerSupportsCancellation { get { throw null; } set { } }
public event System.ComponentModel.DoWorkEventHandler? DoWork { add { } remove { } }
public event System.ComponentModel.ProgressChangedEventHandler? ProgressChanged { add { } remove { } }
public event System.ComponentModel.RunWorkerCompletedEventHandler? RunWorkerCompleted { add { } remove { } }
public void CancelAsync() { }
protected override void Dispose(bool disposing) { }
protected virtual void OnDoWork(System.ComponentModel.DoWorkEventArgs e) { }
protected virtual void OnProgressChanged(System.ComponentModel.ProgressChangedEventArgs e) { }
protected virtual void OnRunWorkerCompleted(System.ComponentModel.RunWorkerCompletedEventArgs e) { }
public void ReportProgress(int percentProgress) { }
public void ReportProgress(int percentProgress, object? userState) { }
public void RunWorkerAsync() { }
public void RunWorkerAsync(object? argument) { }
}
public partial class DoWorkEventArgs : System.ComponentModel.CancelEventArgs
{
public DoWorkEventArgs(object? argument) { }
public object? Argument { get { throw null; } }
public object? Result { get { throw null; } set { } }
}
public delegate void DoWorkEventHandler(object? sender, System.ComponentModel.DoWorkEventArgs e);
public partial class ProgressChangedEventArgs : System.EventArgs
{
public ProgressChangedEventArgs(int progressPercentage, object? userState) { }
public int ProgressPercentage { get { throw null; } }
public object? UserState { get { throw null; } }
}
public delegate void ProgressChangedEventHandler(object? sender, System.ComponentModel.ProgressChangedEventArgs e);
public partial class RunWorkerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
{
public RunWorkerCompletedEventArgs(object? result, System.Exception? error, bool cancelled) : base (default(System.Exception), default(bool), default(object)) { }
public object? Result { get { throw null; } }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public new object? UserState { get { throw null; } }
}
public delegate void RunWorkerCompletedEventHandler(object? sender, System.ComponentModel.RunWorkerCompletedEventArgs e);
}