Files
27Aug2021-Cpp2IL-Dump/System/ComponentModel/AsyncCompletedEventArgs.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +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: 0x020000DE RID: 222
[Token(Token = "0x20000DE")]
public class AsyncCompletedEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.AsyncCompletedEventArgs" /> class.</summary>
// Token: 0x06000534 RID: 1332 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000534")]
[Address(RVA = "0xB8E4C0", Offset = "0xB8D4C0", VA = "0x180B8E4C0")]
[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: 0x06000535 RID: 1333 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000535")]
[Address(RVA = "0xB8E520", Offset = "0xB8D520", VA = "0x180B8E520")]
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: 0x170000CD RID: 205
// (get) Token: 0x06000536 RID: 1334 RVA: 0x00004170 File Offset: 0x00002370
[Token(Token = "0x170000CD")]
[SRDescription("True if operation was cancelled.")]
public bool Cancelled
{
[Token(Token = "0x6000536")]
[Address(RVA = "0x497570", Offset = "0x496570", VA = "0x180497570")]
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: 0x170000CE RID: 206
// (get) Token: 0x06000537 RID: 1335 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000CE")]
[SRDescription("Exception that occurred during operation. Null if no error.")]
public Exception Error
{
[Token(Token = "0x6000537")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
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: 0x170000CF RID: 207
// (get) Token: 0x06000538 RID: 1336 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170000CF")]
[SRDescription("User-supplied state to identify operation.")]
public object UserState
{
[Token(Token = "0x6000538")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
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: 0x06000539 RID: 1337 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6000539")]
[Address(RVA = "0xB8E3E0", Offset = "0xB8D3E0", VA = "0x180B8E3E0")]
protected void RaiseExceptionIfNecessary()
{
}
// Token: 0x04000428 RID: 1064
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000428")]
private readonly Exception error;
// Token: 0x04000429 RID: 1065
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000429")]
private readonly bool cancelled;
// Token: 0x0400042A RID: 1066
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400042A")]
private readonly object userState;
}
}