Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Security / Policy / IApplicationTrustManager.cs / 1 / IApplicationTrustManager.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // IApplicationTrustManager.cs // namespace System.Security.Policy { // // Interface that defines an IApplicationTrustManager. An IApplicationTrustManager handles application security decisions // when there is no stored policy for that app, be this by prompting the user, checking a web service, or other means. // [System.Runtime.InteropServices.ComVisible(true)] public interface IApplicationTrustManager : ISecurityEncodable { ApplicationTrust DetermineApplicationTrust (ActivationContext activationContext, TrustManagerContext context); } // // This enumeration provides a hint to the trust manager as to the UI it should provide for the trust decision. // [System.Runtime.InteropServices.ComVisible(true)] public enum TrustManagerUIContext { Install, Upgrade, Run } // // The TrustManagerContext class represents context that the host would like the Trust Manager to [System.Runtime.InteropServices.ComVisible(true)] public class TrustManagerContext { private bool m_ignorePersistedDecision; private TrustManagerUIContext m_uiContext; private bool m_noPrompt; private bool m_keepAlive; private bool m_persist; private ApplicationIdentity m_appId; public TrustManagerContext () : this (TrustManagerUIContext.Run) {} public TrustManagerContext (TrustManagerUIContext uiContext) { m_ignorePersistedDecision = false; m_uiContext = uiContext; m_keepAlive = false; m_persist = true; } public virtual TrustManagerUIContext UIContext { get { return m_uiContext; } set { m_uiContext = value; } } public virtual bool NoPrompt { get { return m_noPrompt; } set { m_noPrompt = value; } } public virtual bool IgnorePersistedDecision { get { return m_ignorePersistedDecision; } set { m_ignorePersistedDecision = value; } } public virtual bool KeepAlive { get { return m_keepAlive; } set { m_keepAlive = value; } } public virtual bool Persist { get { return m_persist; } set { m_persist = value; } } public virtual ApplicationIdentity PreviousApplicationIdentity { get { return m_appId; } set { m_appId = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InheritedPropertyDescriptor.cs
- PermissionSetTriple.cs
- OracleRowUpdatedEventArgs.cs
- ADConnectionHelper.cs
- SettingsBindableAttribute.cs
- DataBoundLiteralControl.cs
- TabControl.cs
- ListItemCollection.cs
- _UriSyntax.cs
- MLangCodePageEncoding.cs
- TTSEngineProxy.cs
- NamespaceCollection.cs
- GridViewCancelEditEventArgs.cs
- ModuleElement.cs
- BinaryWriter.cs
- ListArgumentProvider.cs
- TextServicesCompartmentEventSink.cs
- BufferBuilder.cs
- EntityReference.cs
- AsyncOperationManager.cs
- User.cs
- DictionaryEditChange.cs
- ipaddressinformationcollection.cs
- CollectionTypeElement.cs
- DataKeyCollection.cs
- SystemIPv6InterfaceProperties.cs
- TemplatedWizardStep.cs
- BooleanFacetDescriptionElement.cs
- RadioButtonAutomationPeer.cs
- DesignerTransactionCloseEvent.cs
- SqlDataSourceCache.cs
- ObsoleteAttribute.cs
- UIElement3DAutomationPeer.cs
- SHA512.cs
- SqlWriter.cs
- XmlUnspecifiedAttribute.cs
- EventWaitHandleSecurity.cs
- StringResourceManager.cs
- WebServiceMethodData.cs
- HtmlLink.cs
- ApplicationException.cs
- TextTrailingCharacterEllipsis.cs
- Int64.cs
- ContextMenu.cs
- ControlType.cs
- Application.cs
- TimeSpanStorage.cs
- EditorZone.cs
- CssClassPropertyAttribute.cs
- _LazyAsyncResult.cs
- MeasureItemEvent.cs
- LogSwitch.cs
- PrintPreviewControl.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- CellParaClient.cs
- TextTreeTextNode.cs
- TabletDevice.cs
- XmlTypeAttribute.cs
- TypeUsageBuilder.cs
- IndexOutOfRangeException.cs
- DayRenderEvent.cs
- SeparatorAutomationPeer.cs
- IntSecurity.cs
- NameValueFileSectionHandler.cs
- Normalization.cs
- UnsafeNativeMethods.cs
- GPRECTF.cs
- ActivityExecutionFilter.cs
- DataReaderContainer.cs
- WinEventHandler.cs
- EntityStoreSchemaGenerator.cs
- StandardBindingElement.cs
- CrossContextChannel.cs
- ListViewHitTestInfo.cs
- TransactionChannelFactory.cs
- XhtmlBasicImageAdapter.cs
- SafeThemeHandle.cs
- Internal.cs
- DnsPermission.cs
- ModulesEntry.cs
- CqlBlock.cs
- ValidatorCompatibilityHelper.cs
- XsdDataContractExporter.cs
- StringBuilder.cs
- ComponentCollection.cs
- QueryAsyncResult.cs
- SerialPort.cs
- DeviceContext.cs
- ThreadStartException.cs
- MissingFieldException.cs
- While.cs
- ListBox.cs
- Graph.cs
- ObjectNotFoundException.cs
- uribuilder.cs
- OrderedParallelQuery.cs
- sqlinternaltransaction.cs
- ServiceProviders.cs
- DataGridViewCellFormattingEventArgs.cs
- OdbcFactory.cs