using System;
using Cpp2IlInjected;
namespace System.ComponentModel
{
/// Provides data for the MethodName event.
// Token: 0x020000E2 RID: 226
[Token(Token = "0x20000E2")]
public class AsyncCompletedEventArgs : EventArgs
{
/// Initializes a new instance of the class.
// 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()
{
}
/// Initializes a new instance of the class.
/// Any error that occurred during the asynchronous operation.
/// A value indicating whether the asynchronous operation was canceled.
/// The optional user-supplied state object passed to the method.
// 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)
{
}
/// Gets a value indicating whether an asynchronous operation has been canceled.
///
/// if the background operation has been canceled; otherwise . The default is .
// 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);
}
}
/// Gets a value indicating which error occurred during an asynchronous operation.
/// An instance, if an error occurred during an asynchronous operation; otherwise .
// 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;
}
}
/// Gets the unique identifier for the asynchronous task.
/// An object reference that uniquely identifies the asynchronous task; otherwise, if no value has been set.
// 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;
}
}
/// Raises a user-supplied exception if an asynchronous operation failed.
/// The property is .
/// The property has been set by the asynchronous operation. The property holds a reference to .
// 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;
}
}