using System; using System.Runtime.InteropServices; namespace System.Security.Policy { /// Represents the context for the trust manager to consider when making the decision to run an application, and when setting up the security on a new in which to run an application. // Token: 0x020005A2 RID: 1442 [ComVisible(true)] public class TrustManagerContext { /// Initializes a new instance of the class. // Token: 0x060034CE RID: 13518 RVA: 0x000B6184 File Offset: 0x000B4384 public TrustManagerContext() : this(TrustManagerUIContext.Run) { } /// Initializes a new instance of the class using the specified object. /// One of the enumeration values that specifies the type of trust manager user interface to use. // Token: 0x060034CF RID: 13519 RVA: 0x000B6190 File Offset: 0x000B4390 public TrustManagerContext(TrustManagerUIContext uiContext) { this._ignorePersistedDecision = false; this._noPrompt = false; this._keepAlive = false; this._persist = false; this._ui = uiContext; } /// Gets or sets a value indicating whether the application security manager should ignore any persisted decisions and call the trust manager. /// true to call the trust manager; otherwise, false. // Token: 0x17000A5B RID: 2651 // (get) Token: 0x060034D0 RID: 13520 RVA: 0x000B61BC File Offset: 0x000B43BC // (set) Token: 0x060034D1 RID: 13521 RVA: 0x000B61C4 File Offset: 0x000B43C4 public virtual bool IgnorePersistedDecision { get { return this._ignorePersistedDecision; } set { this._ignorePersistedDecision = value; } } /// Gets or sets a value indicating whether the trust manager should cache state for this application, to facilitate future requests to determine application trust. /// true to cache state data; otherwise, false. The default is false. // Token: 0x17000A5C RID: 2652 // (get) Token: 0x060034D2 RID: 13522 RVA: 0x000B61D0 File Offset: 0x000B43D0 // (set) Token: 0x060034D3 RID: 13523 RVA: 0x000B61D8 File Offset: 0x000B43D8 public virtual bool KeepAlive { get { return this._keepAlive; } set { this._keepAlive = value; } } /// Gets or sets a value indicating whether the trust manager should prompt the user for trust decisions. /// true to not prompt the user; false to prompt the user. The default is false. // Token: 0x17000A5D RID: 2653 // (get) Token: 0x060034D4 RID: 13524 RVA: 0x000B61E4 File Offset: 0x000B43E4 // (set) Token: 0x060034D5 RID: 13525 RVA: 0x000B61EC File Offset: 0x000B43EC public virtual bool NoPrompt { get { return this._noPrompt; } set { this._noPrompt = value; } } /// Gets or sets a value indicating whether the user's response to the consent dialog should be persisted. /// true to cache state data; otherwise, false. The default is true. // Token: 0x17000A5E RID: 2654 // (get) Token: 0x060034D6 RID: 13526 RVA: 0x000B61F8 File Offset: 0x000B43F8 // (set) Token: 0x060034D7 RID: 13527 RVA: 0x000B6200 File Offset: 0x000B4400 public virtual bool Persist { get { return this._persist; } set { this._persist = value; } } /// Gets or sets the identity of the previous application identity. /// An object representing the previous . // Token: 0x17000A5F RID: 2655 // (get) Token: 0x060034D8 RID: 13528 RVA: 0x000B620C File Offset: 0x000B440C // (set) Token: 0x060034D9 RID: 13529 RVA: 0x000B6214 File Offset: 0x000B4414 public virtual ApplicationIdentity PreviousApplicationIdentity { get { return this._previousId; } set { this._previousId = value; } } /// Gets or sets the type of user interface the trust manager should display. /// One of the enumeration values. The default is . // Token: 0x17000A60 RID: 2656 // (get) Token: 0x060034DA RID: 13530 RVA: 0x000B6220 File Offset: 0x000B4420 // (set) Token: 0x060034DB RID: 13531 RVA: 0x000B6228 File Offset: 0x000B4428 public virtual TrustManagerUIContext UIContext { get { return this._ui; } set { this._ui = value; } } // Token: 0x0400157D RID: 5501 private bool _ignorePersistedDecision; // Token: 0x0400157E RID: 5502 private bool _noPrompt; // Token: 0x0400157F RID: 5503 private bool _keepAlive; // Token: 0x04001580 RID: 5504 private bool _persist; // Token: 0x04001581 RID: 5505 private ApplicationIdentity _previousId; // Token: 0x04001582 RID: 5506 private TrustManagerUIContext _ui; } }