Files
2026-04-10 22:50:51 +02:00

108 lines
4.7 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// <summary>Provides data for the MethodName<see langword="Completed" /> event.</summary>
// Token: 0x020000E2 RID: 226
[Token(Token = "0x20000E2")]
public class AsyncCompletedEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.AsyncCompletedEventArgs" /> class.</summary>
// Token: 0x0600054A RID: 1354 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600054A")]
[Address(RVA = "0x4916E0", Offset = "0x4904E0", VA = "0x1804916E0")]
[Obsolete]
[Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
[EditorBrowsable(EditorBrowsableState.Never)]
public AsyncCompletedEventArgs()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.AsyncCompletedEventArgs" /> class.</summary>
/// <param name="error">Any error that occurred during the asynchronous operation.</param>
/// <param name="cancelled">A value indicating whether the asynchronous operation was canceled.</param>
/// <param name="userState">The optional user-supplied state object passed to the <see cref="M:System.ComponentModel.BackgroundWorker.RunWorkerAsync(System.Object)" /> method.</param>
// Token: 0x0600054B RID: 1355 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600054B")]
[Address(RVA = "0x491740", Offset = "0x490540", VA = "0x180491740")]
public AsyncCompletedEventArgs(Exception error, bool cancelled, object userState)
{
}
/// <summary>Gets a value indicating whether an asynchronous operation has been canceled.</summary>
/// <returns>
/// <see langword="true" /> if the background operation has been canceled; otherwise <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x170000D1 RID: 209
// (get) Token: 0x0600054C RID: 1356 RVA: 0x00004188 File Offset: 0x00002388
[Token(Token = "0x170000D1")]
[SRDescription("True if operation was cancelled.")]
public bool Cancelled
{
[Token(Token = "0x600054C")]
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating which error occurred during an asynchronous operation.</summary>
/// <returns>An <see cref="T:System.Exception" /> instance, if an error occurred during an asynchronous operation; otherwise <see langword="null" />.</returns>
// Token: 0x170000D2 RID: 210
// (get) Token: 0x0600054D RID: 1357 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000D2")]
[SRDescription("Exception that occurred during operation. Null if no error.")]
public Exception Error
{
[Token(Token = "0x600054D")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
}
/// <summary>Gets the unique identifier for the asynchronous task.</summary>
/// <returns>An object reference that uniquely identifies the asynchronous task; otherwise, <see langword="null" /> if no value has been set.</returns>
// Token: 0x170000D3 RID: 211
// (get) Token: 0x0600054E RID: 1358 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000D3")]
[SRDescription("User-supplied state to identify operation.")]
public object UserState
{
[Token(Token = "0x600054E")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return null;
}
}
/// <summary>Raises a user-supplied exception if an asynchronous operation failed.</summary>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.ComponentModel.AsyncCompletedEventArgs.Cancelled" /> property is <see langword="true" />.</exception>
/// <exception cref="T:System.Reflection.TargetInvocationException">The <see cref="P:System.ComponentModel.AsyncCompletedEventArgs.Error" /> property has been set by the asynchronous operation. The <see cref="P:System.Exception.InnerException" /> property holds a reference to <see cref="P:System.ComponentModel.AsyncCompletedEventArgs.Error" />.</exception>
// Token: 0x0600054F RID: 1359 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600054F")]
[Address(RVA = "0x491600", Offset = "0x490400", VA = "0x180491600")]
protected void RaiseExceptionIfNecessary()
{
}
// Token: 0x04000435 RID: 1077
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000435")]
private readonly Exception error;
// Token: 0x04000436 RID: 1078
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000436")]
private readonly bool cancelled;
// Token: 0x04000437 RID: 1079
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000437")]
private readonly object userState;
}
}