60 lines
3.0 KiB
C#
60 lines
3.0 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Security.AccessControl
|
|
{
|
|
/// <summary>The exception that is thrown when a method in the <see cref="N:System.Security.AccessControl" /> namespace attempts to enable a privilege that it does not have.</summary>
|
|
// Token: 0x020004D5 RID: 1237
|
|
[Serializable]
|
|
public sealed class PrivilegeNotHeldException : UnauthorizedAccessException, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.PrivilegeNotHeldException" /> class.</summary>
|
|
// Token: 0x06002DFA RID: 11770 RVA: 0x000940B8 File Offset: 0x000922B8
|
|
public PrivilegeNotHeldException()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.PrivilegeNotHeldException" /> class by using the specified privilege.</summary>
|
|
/// <param name="privilege">The privilege that is not enabled.</param>
|
|
// Token: 0x06002DFB RID: 11771 RVA: 0x000940C0 File Offset: 0x000922C0
|
|
public PrivilegeNotHeldException(string privilege)
|
|
: base(privilege)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.AccessControl.PrivilegeNotHeldException" /> class by using the specified exception.</summary>
|
|
/// <param name="privilege">The privilege that is not enabled.</param>
|
|
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="innerException" /> 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: 0x06002DFC RID: 11772 RVA: 0x000940CC File Offset: 0x000922CC
|
|
public PrivilegeNotHeldException(string privilege, Exception inner)
|
|
: base(privilege, inner)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the name of the privilege that is not enabled.</summary>
|
|
/// <returns>The name of the privilege that the method failed to enable.</returns>
|
|
// Token: 0x17000914 RID: 2324
|
|
// (get) Token: 0x06002DFD RID: 11773 RVA: 0x000940D8 File Offset: 0x000922D8
|
|
public string PrivilegeName
|
|
{
|
|
get
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|
|
/// <summary>Sets the <paramref name="info" /> parameter with information about the exception.</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>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="*AllFiles*" PathDiscovery="*AllFiles*" />
|
|
/// </PermissionSet>
|
|
// Token: 0x06002DFE RID: 11774 RVA: 0x000940E0 File Offset: 0x000922E0
|
|
[MonoTODO]
|
|
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|