Files
2026-06-04 11:42:34 +02:00

30 lines
1.8 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.Security
{
/// <summary>Manages the stack walk that determines whether all callers in the call stack have the required permissions to access a protected resource.</summary>
// Token: 0x020005C4 RID: 1476
[ComVisible(true)]
public interface IStackWalk
{
/// <summary>Asserts that the calling code can access the resource identified by the current permission object, even if callers higher in the stack have not been granted permission to access the resource.</summary>
/// <exception cref="T:System.Security.SecurityException">The calling code does not have <see cref="F:System.Security.Permissions.SecurityPermissionFlag.Assertion" />. </exception>
// Token: 0x060035CC RID: 13772
void Assert();
/// <summary>Determines at run time whether all callers in the call stack have been granted the permission specified by the current permission object.</summary>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have the permission specified by the current permission object.-or- A caller in the call stack has called <see cref="M:System.Security.IStackWalk.Deny" /> on the current permission object. </exception>
// Token: 0x060035CD RID: 13773
void Demand();
/// <summary>Causes every <see cref="M:System.Security.IStackWalk.Demand" /> for the current object that passes through the calling code to fail.</summary>
// Token: 0x060035CE RID: 13774
void Deny();
/// <summary>Causes every <see cref="M:System.Security.IStackWalk.Demand" /> for all objects except the current one that passes through the calling code to fail, even if code higher in the call stack has been granted permission to access other resources.</summary>
// Token: 0x060035CF RID: 13775
void PermitOnly();
}
}