56 lines
2.4 KiB
C#
56 lines
2.4 KiB
C#
using System;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides data for the MethodNameCompleted event.</summary>
|
|
// Token: 0x020000BF RID: 191
|
|
public class RunWorkerCompletedEventArgs : AsyncCompletedEventArgs
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.RunWorkerCompletedEventArgs" /> class.</summary>
|
|
/// <param name="result">The result of an asynchronous operation.</param>
|
|
/// <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>
|
|
// Token: 0x0600065C RID: 1628 RVA: 0x00010BAC File Offset: 0x0000EDAC
|
|
public RunWorkerCompletedEventArgs(object result, Exception error, bool cancelled)
|
|
: base(error, cancelled, null)
|
|
{
|
|
this.result = result;
|
|
}
|
|
|
|
/// <summary>Gets a value that represents the result of an asynchronous operation.</summary>
|
|
/// <returns>An <see cref="T:System.Object" /> representing the result of an asynchronous operation.</returns>
|
|
/// <exception cref="T:System.Reflection.TargetInvocationException">
|
|
/// <see cref="P:System.ComponentModel.AsyncCompletedEventArgs.Error" /> is not null. The <see cref="P:System.Exception.InnerException" /> property holds a reference to <see cref="P:System.ComponentModel.AsyncCompletedEventArgs.Error" />.</exception>
|
|
/// <exception cref="T:System.InvalidOperationException">
|
|
/// <see cref="P:System.ComponentModel.AsyncCompletedEventArgs.Cancelled" /> is true.</exception>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
|
|
/// </PermissionSet>
|
|
// Token: 0x170001A6 RID: 422
|
|
// (get) Token: 0x0600065D RID: 1629 RVA: 0x00010BC0 File Offset: 0x0000EDC0
|
|
public object Result
|
|
{
|
|
get
|
|
{
|
|
base.RaiseExceptionIfNecessary();
|
|
return this.result;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value that represents the user state.</summary>
|
|
/// <returns>An <see cref="T:System.Object" /> representing the user state.</returns>
|
|
// Token: 0x170001A7 RID: 423
|
|
// (get) Token: 0x0600065E RID: 1630 RVA: 0x00010BD0 File Offset: 0x0000EDD0
|
|
public new object UserState
|
|
{
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040001E1 RID: 481
|
|
private object result;
|
|
}
|
|
}
|