scripts
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
|
||||
namespace System.Security
|
||||
{
|
||||
/// <summary>Provides a base class for requesting the security status of an action from the <see cref="T:System.AppDomainManager" /> object.</summary>
|
||||
// Token: 0x020005D6 RID: 1494
|
||||
public abstract class SecurityState
|
||||
{
|
||||
/// <summary>When overridden in a derived class, ensures that the state that is represented by <see cref="T:System.Security.SecurityState" /> is available on the host.</summary>
|
||||
// Token: 0x060036A6 RID: 13990
|
||||
public abstract void EnsureState();
|
||||
|
||||
/// <summary>Gets a value that indicates whether the state for this implementation of the <see cref="T:System.Security.SecurityState" /> class is available on the current host. </summary>
|
||||
/// <returns>true if the state is available; otherwise, false. </returns>
|
||||
// Token: 0x060036A7 RID: 13991 RVA: 0x000BB870 File Offset: 0x000B9A70
|
||||
public bool IsStateAvailable()
|
||||
{
|
||||
AppDomainManager domainManager = AppDomain.CurrentDomain.DomainManager;
|
||||
return domainManager != null && domainManager.CheckSecuritySettings(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user