mscorlib(4.0.0.0) API with additions
TrustManagerContext.cs
2 
4 {
6  [ComVisible(true)]
7  public class TrustManagerContext
8  {
9  private bool m_ignorePersistedDecision;
10 
11  private TrustManagerUIContext m_uiContext;
12 
13  private bool m_noPrompt;
14 
15  private bool m_keepAlive;
16 
17  private bool m_persist;
18 
19  private ApplicationIdentity m_appId;
20 
23  public virtual TrustManagerUIContext UIContext
24  {
25  get
26  {
27  return m_uiContext;
28  }
29  set
30  {
31  m_uiContext = value;
32  }
33  }
34 
38  public virtual bool NoPrompt
39  {
40  get
41  {
42  return m_noPrompt;
43  }
44  set
45  {
46  m_noPrompt = value;
47  }
48  }
49 
53  public virtual bool IgnorePersistedDecision
54  {
55  get
56  {
57  return m_ignorePersistedDecision;
58  }
59  set
60  {
61  m_ignorePersistedDecision = value;
62  }
63  }
64 
68  public virtual bool KeepAlive
69  {
70  get
71  {
72  return m_keepAlive;
73  }
74  set
75  {
76  m_keepAlive = value;
77  }
78  }
79 
83  public virtual bool Persist
84  {
85  get
86  {
87  return m_persist;
88  }
89  set
90  {
91  m_persist = value;
92  }
93  }
94 
98  {
99  get
100  {
101  return m_appId;
102  }
103  set
104  {
105  m_appId = value;
106  }
107  }
108 
111  : this(TrustManagerUIContext.Run)
112  {
113  }
114 
118  {
119  m_ignorePersistedDecision = false;
120  m_uiContext = uiContext;
121  m_keepAlive = false;
122  m_persist = true;
123  }
124  }
125 }
virtual bool IgnorePersistedDecision
Gets or sets a value indicating whether the application security manager should ignore any persisted ...
Definition: __Canon.cs:3
virtual bool Persist
Gets or sets a value indicating whether the user's response to the consent dialog should be persisted...
virtual TrustManagerUIContext UIContext
Gets or sets the type of user interface the trust manager should display.
virtual ApplicationIdentity PreviousApplicationIdentity
Gets or sets the identity of the previous application identity.
TrustManagerUIContext
Specifies the type of user interface (UI) the trust manager should use for trust decisions.
virtual bool KeepAlive
Gets or sets a value indicating whether the trust manager should cache state for this application,...
Represents the context for the trust manager to consider when making the decision to run an applicati...
virtual bool NoPrompt
Gets or sets a value indicating whether the trust manager should prompt the user for trust decisions.
TrustManagerContext(TrustManagerUIContext uiContext)
Initializes a new instance of the T:System.Security.Policy.TrustManagerContext class using the specif...
Provides the ability to uniquely identify a manifest-activated application. This class cannot be inhe...
TrustManagerContext()
Initializes a new instance of the T:System.Security.Policy.TrustManagerContext class.