Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / permissions / UserInitiatedNavigationPermission.cs / 1 / UserInitiatedNavigationPermission.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Internal Permissions. // These are classes for permissions that will be asserted/demanded internally. // But will be granted in full-trust. // Only internal avalon code will assert these permissions. // // Using them allows the following: // We can have very specific targeted asserts. So for example instead of // a blanket assert for Unmanaged code instead we can have very granular permissiosn. // // They are still available by default in full-trust. // // Currently the only way to detect User-Initiated actions is for commands. // So by associating a custom permisison with a command we can very tightly scope // the set of operations allowed. // // History: // 09/12/05 : [....] - seperated UserInitiatedNaviagtionPermission from InternalPermission.cs // 02/28/05 : [....] - Created //--------------------------------------------------------------------------- using System; using System.Security; using System.Windows; using MS.Internal.Permissions; namespace MS.Internal.Permissions { internal class UserInitiatedNavigationPermission : InternalPermissionBase { public UserInitiatedNavigationPermission() : base() { } public override IPermission Copy() { // copy is easy there is no state ! return new UserInitiatedNavigationPermission(); } } } // 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
- NonBatchDirectoryCompiler.cs
- RewritingValidator.cs
- StringConcat.cs
- DynamicVirtualDiscoSearcher.cs
- SymmetricCryptoHandle.cs
- XamlSerializerUtil.cs
- NegotiateStream.cs
- CompatibleIComparer.cs
- WsdlInspector.cs
- FileSecurity.cs
- ISAPIApplicationHost.cs
- DataControlFieldCollection.cs
- OptimalTextSource.cs
- MappingItemCollection.cs
- unitconverter.cs
- ThicknessAnimationBase.cs
- TagNameToTypeMapper.cs
- Console.cs
- DataGridParentRows.cs
- TextFormatterImp.cs
- Listbox.cs
- CompilerGlobalScopeAttribute.cs
- OutputCacheSettingsSection.cs
- Compiler.cs
- TextBoxBase.cs
- DeviceContexts.cs
- ClientFormsIdentity.cs
- RequiredFieldValidator.cs
- SelectionEditingBehavior.cs
- ColorEditor.cs
- Logging.cs
- XmlSerializerSection.cs
- WebPartManagerInternals.cs
- TransactionProtocolConverter.cs
- ConstraintConverter.cs
- ApplicationId.cs
- AxisAngleRotation3D.cs
- RpcAsyncResult.cs
- DataGridTablesFactory.cs
- BindingContext.cs
- StrokeCollectionDefaultValueFactory.cs
- DictionaryContent.cs
- InputDevice.cs
- QueryContinueDragEvent.cs
- KeyInfo.cs
- SingleSelectRootGridEntry.cs
- SapiInterop.cs
- DataGridViewRowStateChangedEventArgs.cs
- TableRow.cs
- TypeConverter.cs
- PartialArray.cs
- BinaryKeyIdentifierClause.cs
- ProcessHostFactoryHelper.cs
- ReferenceTypeElement.cs
- WebPartChrome.cs
- HttpChannelListener.cs
- HtmlControlAdapter.cs
- HashCodeCombiner.cs
- ProfileInfo.cs
- DataGridItemCollection.cs
- Descriptor.cs
- HttpServerProtocol.cs
- ValueType.cs
- DeviceFiltersSection.cs
- AutomationPatternInfo.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ColorPalette.cs
- DispatcherSynchronizationContext.cs
- ScriptReferenceEventArgs.cs
- DetailsViewModeEventArgs.cs
- Span.cs
- BrowserDefinitionCollection.cs
- SqlCacheDependency.cs
- DefaultTextStore.cs
- ReaderOutput.cs
- Effect.cs
- GridLengthConverter.cs
- FilteredXmlReader.cs
- StatementContext.cs
- ZipIOFileItemStream.cs
- DiagnosticsConfigurationHandler.cs
- BoundingRectTracker.cs
- DetailsViewRowCollection.cs
- CompiledRegexRunnerFactory.cs
- DelegateBodyWriter.cs
- LinkDesigner.cs
- TableTextElementCollectionInternal.cs
- EditingCoordinator.cs
- NullRuntimeConfig.cs
- EUCJPEncoding.cs
- AutomationPeer.cs
- XPathCompileException.cs
- ListViewSortEventArgs.cs
- Validator.cs
- XmlChildEnumerator.cs
- ManagedFilter.cs
- OdbcInfoMessageEvent.cs
- PublisherMembershipCondition.cs
- ReadWriteObjectLock.cs
- EnvelopedSignatureTransform.cs