Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / permissions / UserInitiatedNavigationPermission.cs / 1305600 / 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 : marka - Created //--------------------------------------------------------------------------- using System; using System.Security; using System.Security.Permissions; using System.Windows; using MS.Internal.Permissions; namespace MS.Internal.Permissions { [Serializable] internal class UserInitiatedNavigationPermission : InternalParameterlessPermissionBase { public UserInitiatedNavigationPermission() : this(PermissionState.Unrestricted) { } public UserInitiatedNavigationPermission(PermissionState state): base(state) { } 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. //---------------------------------------------------------------------------- // //// 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 : marka - Created //--------------------------------------------------------------------------- using System; using System.Security; using System.Security.Permissions; using System.Windows; using MS.Internal.Permissions; namespace MS.Internal.Permissions { [Serializable] internal class UserInitiatedNavigationPermission : InternalParameterlessPermissionBase { public UserInitiatedNavigationPermission() : this(PermissionState.Unrestricted) { } public UserInitiatedNavigationPermission(PermissionState state): base(state) { } 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
- ContainerVisual.cs
- ListArgumentProvider.cs
- ListenerSingletonConnectionReader.cs
- ActivityCodeDomSerializer.cs
- TextEditorCopyPaste.cs
- webeventbuffer.cs
- TimeStampChecker.cs
- TableCellAutomationPeer.cs
- GuidConverter.cs
- UnaryNode.cs
- NameValueSectionHandler.cs
- basevalidator.cs
- DbCommandTree.cs
- Simplifier.cs
- COAUTHIDENTITY.cs
- HttpRuntimeSection.cs
- CodeBinaryOperatorExpression.cs
- ExeContext.cs
- ClientTargetSection.cs
- WebBrowsableAttribute.cs
- CapabilitiesUse.cs
- TransformConverter.cs
- QueryComponents.cs
- HttpContextServiceHost.cs
- TextViewDesigner.cs
- CLSCompliantAttribute.cs
- SpecialNameAttribute.cs
- InheritanceService.cs
- SqlUserDefinedAggregateAttribute.cs
- IODescriptionAttribute.cs
- SymmetricKeyWrap.cs
- ToolStripProgressBar.cs
- MediaContext.cs
- HelloMessage11.cs
- ProbeMatchesApril2005.cs
- SQLConvert.cs
- TreeViewImageKeyConverter.cs
- DocumentPageViewAutomationPeer.cs
- DataGridViewCellCancelEventArgs.cs
- TemplateInstanceAttribute.cs
- PopOutPanel.cs
- PartBasedPackageProperties.cs
- AutoResetEvent.cs
- XmlEncoding.cs
- Pair.cs
- HttpServerVarsCollection.cs
- CompilationSection.cs
- InlineUIContainer.cs
- COAUTHINFO.cs
- IteratorFilter.cs
- SqlAliasesReferenced.cs
- EntityParameter.cs
- XmlMtomReader.cs
- EventHandlersStore.cs
- ConfigurationSectionGroup.cs
- IdentityHolder.cs
- XmlSchemaImport.cs
- ConfigsHelper.cs
- Tokenizer.cs
- ProcessThread.cs
- StatusBarPanel.cs
- ItemsPanelTemplate.cs
- TraceContextRecord.cs
- DocumentSchemaValidator.cs
- DataError.cs
- PartialCachingAttribute.cs
- XmlAttributeProperties.cs
- DirectoryNotFoundException.cs
- ParameterToken.cs
- ListItemParagraph.cs
- CodeIdentifier.cs
- CodeSnippetCompileUnit.cs
- Mapping.cs
- MeshGeometry3D.cs
- AccessibleObject.cs
- MSAAEventDispatcher.cs
- ProgressBarHighlightConverter.cs
- DirectoryObjectSecurity.cs
- FormsAuthentication.cs
- OptimizedTemplateContent.cs
- PerformanceCounterCategory.cs
- SecurityContext.cs
- DetailsView.cs
- Container.cs
- MULTI_QI.cs
- ViewBase.cs
- NoClickablePointException.cs
- DefaultSerializationProviderAttribute.cs
- StructuralObject.cs
- StoragePropertyMapping.cs
- ClientSettingsSection.cs
- SQLInt32Storage.cs
- _HeaderInfo.cs
- XmlSchemaAttribute.cs
- ReflectionPermission.cs
- ForEachAction.cs
- CustomGrammar.cs
- DesignerForm.cs
- HttpResponseHeader.cs
- BufferedGraphicsManager.cs