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
- TextRangeEdit.cs
- ListControlBuilder.cs
- ParamArrayAttribute.cs
- CustomAttributeFormatException.cs
- OleServicesContext.cs
- KeyboardNavigation.cs
- ColorAnimationBase.cs
- Int16AnimationUsingKeyFrames.cs
- QilValidationVisitor.cs
- Bits.cs
- SafeNativeMethods.cs
- TabletDevice.cs
- ParenthesizePropertyNameAttribute.cs
- PeerNameRecordCollection.cs
- SchemaType.cs
- SecurityManager.cs
- MultilineStringConverter.cs
- FileDocument.cs
- WmlPhoneCallAdapter.cs
- WebControl.cs
- Debug.cs
- ThicknessAnimationUsingKeyFrames.cs
- DateTimeFormatInfo.cs
- InheritablePropertyChangeInfo.cs
- SynchronousChannelMergeEnumerator.cs
- SecurityTokenAuthenticator.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DocumentGridPage.cs
- EncodingNLS.cs
- ResourceAttributes.cs
- HtmlShimManager.cs
- ApplicationCommands.cs
- DrawingServices.cs
- FigureHelper.cs
- ClientFormsAuthenticationCredentials.cs
- InsufficientMemoryException.cs
- BitmapCodecInfoInternal.cs
- XmlNamedNodeMap.cs
- InvalidOleVariantTypeException.cs
- XmlSchemaSimpleTypeList.cs
- XmlSchemaSubstitutionGroup.cs
- ConfigXmlText.cs
- SecondaryIndexList.cs
- RoutedUICommand.cs
- XmlSchemaAny.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataServiceBuildProvider.cs
- StringComparer.cs
- DeferredSelectedIndexReference.cs
- CheckPair.cs
- HMACSHA512.cs
- MenuBindingsEditor.cs
- ButtonDesigner.cs
- NumericUpDownAcceleration.cs
- TranslateTransform3D.cs
- XmlHierarchicalDataSourceView.cs
- XmlLanguage.cs
- TimerElapsedEvenArgs.cs
- ParagraphResult.cs
- ScriptIgnoreAttribute.cs
- HtmlShimManager.cs
- Command.cs
- AuthenticationModuleElementCollection.cs
- SessionPageStateSection.cs
- ListView.cs
- AssemblyHash.cs
- SessionParameter.cs
- AnchorEditor.cs
- MediaElementAutomationPeer.cs
- WeakKeyDictionary.cs
- TextBlock.cs
- RowBinding.cs
- MemoryMappedViewStream.cs
- FlowLayoutSettings.cs
- QilIterator.cs
- DataGridHelper.cs
- CalendarButton.cs
- AuthenticationModuleElement.cs
- GeneralTransform3DGroup.cs
- CorrelationKey.cs
- Cloud.cs
- COM2IPerPropertyBrowsingHandler.cs
- ObjectIDGenerator.cs
- RadioButtonFlatAdapter.cs
- DtcInterfaces.cs
- SystemWebExtensionsSectionGroup.cs
- OleAutBinder.cs
- DataBindingCollection.cs
- BamlBinaryReader.cs
- RegistryKey.cs
- BooleanSwitch.cs
- _BufferOffsetSize.cs
- ScriptRegistrationManager.cs
- NavigationPropertySingletonExpression.cs
- XmlSchemaComplexContentRestriction.cs
- TransformerTypeCollection.cs
- MimeFormReflector.cs
- oledbmetadatacollectionnames.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- MatrixUtil.cs