Files
Dec2017-Script-Dump/mscorlib/System/UnauthorizedAccessException.cs
2026-06-04 11:42:34 +02:00

54 lines
2.7 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x020006BA RID: 1722
[ComVisible(true)]
[Serializable]
public class UnauthorizedAccessException : SystemException
{
/// <summary>Initializes a new instance of the <see cref="T:System.UnauthorizedAccessException" /> class.</summary>
// Token: 0x0600410A RID: 16650 RVA: 0x000DD664 File Offset: 0x000DB864
public UnauthorizedAccessException()
: base(Locale.GetText("Access to the requested resource is not authorized."))
{
base.HResult = -2146233088;
}
/// <summary>Initializes a new instance of the <see cref="T:System.UnauthorizedAccessException" /> class with a specified error message.</summary>
/// <param name="message">The message that describes the error. </param>
// Token: 0x0600410B RID: 16651 RVA: 0x000DD684 File Offset: 0x000DB884
public UnauthorizedAccessException(string message)
: base(message)
{
base.HResult = -2146233088;
}
/// <summary>Initializes a new instance of the <see cref="T:System.UnauthorizedAccessException" /> 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="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x0600410C RID: 16652 RVA: 0x000DD698 File Offset: 0x000DB898
public UnauthorizedAccessException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233088;
}
/// <summary>Initializes a new instance of the <see cref="T:System.UnauthorizedAccessException" /> class with serialized data.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
// Token: 0x0600410D RID: 16653 RVA: 0x000DD6B0 File Offset: 0x000DB8B0
protected UnauthorizedAccessException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x04001A1A RID: 6682
private const int Result = -2146233088;
}
}