111 lines
5.7 KiB
C#
111 lines
5.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using System.Threading;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.</summary>
|
|
// Token: 0x0200012D RID: 301
|
|
[Token(Token = "0x200012D")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class OperationCanceledException : SystemException
|
|
{
|
|
/// <summary>Gets a token associated with the operation that was canceled.</summary>
|
|
/// <returns>A token associated with the operation that was canceled, or a default token.</returns>
|
|
// Token: 0x170000DB RID: 219
|
|
// (get) Token: 0x06000AE2 RID: 2786 RVA: 0x00009A80 File Offset: 0x00007C80
|
|
// (set) Token: 0x06000AE3 RID: 2787 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170000DB")]
|
|
public CancellationToken CancellationToken
|
|
{
|
|
[Token(Token = "0x6000AE2")]
|
|
[Address(RVA = "0x4C31C0", Offset = "0x4C21C0", VA = "0x1804C31C0")]
|
|
get
|
|
{
|
|
return default(CancellationToken);
|
|
}
|
|
[Token(Token = "0x6000AE3")]
|
|
[Address(RVA = "0x497020", Offset = "0x496020", VA = "0x180497020")]
|
|
private set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a system-supplied error message.</summary>
|
|
// Token: 0x06000AE4 RID: 2788 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AE4")]
|
|
[Address(RVA = "0x2D78A50", Offset = "0x2D77A50", VA = "0x182D78A50")]
|
|
public OperationCanceledException()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a specified error message.</summary>
|
|
/// <param name="message">A <see cref="T:System.String" /> that describes the error.</param>
|
|
// Token: 0x06000AE5 RID: 2789 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AE5")]
|
|
[Address(RVA = "0x2D78AB0", Offset = "0x2D77AB0", VA = "0x182D78AB0")]
|
|
public OperationCanceledException(string message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception.</param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not <see langword="null" />, the current exception is raised in a <see langword="catch" /> block that handles the inner exception.</param>
|
|
// Token: 0x06000AE6 RID: 2790 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AE6")]
|
|
[Address(RVA = "0x2D78B20", Offset = "0x2D77B20", VA = "0x182D78B20")]
|
|
public OperationCanceledException(string message, Exception innerException)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a cancellation token.</summary>
|
|
/// <param name="token">A cancellation token associated with the operation that was canceled.</param>
|
|
// Token: 0x06000AE7 RID: 2791 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AE7")]
|
|
[Address(RVA = "0x2D78B90", Offset = "0x2D77B90", VA = "0x182D78B90")]
|
|
public OperationCanceledException(CancellationToken token)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a specified error message and a cancellation token.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception.</param>
|
|
/// <param name="token">A cancellation token associated with the operation that was canceled.</param>
|
|
// Token: 0x06000AE8 RID: 2792 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AE8")]
|
|
[Address(RVA = "0x2D78B50", Offset = "0x2D77B50", VA = "0x182D78B50")]
|
|
public OperationCanceledException(string message, CancellationToken token)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a specified error message, a reference to the inner exception that is the cause of this exception, and a cancellation token.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception.</param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not <see langword="null" />, the current exception is raised in a <see langword="catch" /> block that handles the inner exception.</param>
|
|
/// <param name="token">A cancellation token associated with the operation that was canceled.</param>
|
|
// Token: 0x06000AE9 RID: 2793 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AE9")]
|
|
[Address(RVA = "0x2D78AE0", Offset = "0x2D77AE0", VA = "0x182D78AE0")]
|
|
public OperationCanceledException(string message, Exception innerException, CancellationToken token)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with serialized data.</summary>
|
|
/// <param name="info">The object that holds the serialized object data.</param>
|
|
/// <param name="context">The contextual information about the source or destination.</param>
|
|
// Token: 0x06000AEA RID: 2794 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000AEA")]
|
|
[Address(RVA = "0x7241B0", Offset = "0x7231B0", VA = "0x1807241B0")]
|
|
protected OperationCanceledException(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000478 RID: 1144
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4000478")]
|
|
[NonSerialized]
|
|
private CancellationToken _cancellationToken;
|
|
}
|
|
}
|