Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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 : younggk - seperated UserInitiatedNaviagtionPermission from InternalPermission.cs // 02/28/05 : marka - 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. //---------------------------------------------------------------------------- // //// 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 : younggk - seperated UserInitiatedNaviagtionPermission from InternalPermission.cs // 02/28/05 : marka - 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
- LinkClickEvent.cs
- AnnotationAuthorChangedEventArgs.cs
- ResourceKey.cs
- ListViewItem.cs
- BaseParagraph.cs
- Int64KeyFrameCollection.cs
- WindowsToolbarAsMenu.cs
- WebServiceReceiveDesigner.cs
- MimeObjectFactory.cs
- FrameworkTemplate.cs
- RangeValuePattern.cs
- DirectionalLight.cs
- X509RecipientCertificateClientElement.cs
- TemplateControlParser.cs
- URL.cs
- SourceSwitch.cs
- MessagePartDescriptionCollection.cs
- BitmapEffectCollection.cs
- InputMethod.cs
- SQLChars.cs
- ContextTokenTypeConverter.cs
- Merger.cs
- ClientSession.cs
- ScrollEventArgs.cs
- TimersDescriptionAttribute.cs
- XmlAttribute.cs
- StateMachineWorkflow.cs
- SiteMapProvider.cs
- CompiledQueryCacheKey.cs
- DataGridViewTextBoxEditingControl.cs
- ThemeInfoAttribute.cs
- SelectionGlyphBase.cs
- ComplexType.cs
- DateTimeParse.cs
- ListViewEditEventArgs.cs
- TransferRequestHandler.cs
- ContentPresenter.cs
- DiscriminatorMap.cs
- Certificate.cs
- ToolTip.cs
- GridItem.cs
- DataServiceStreamProviderWrapper.cs
- AnnotationHelper.cs
- DataTableReaderListener.cs
- XmlQuerySequence.cs
- StrokeNodeOperations.cs
- TrustManager.cs
- Triangle.cs
- DynamicPropertyHolder.cs
- ExtensionSimplifierMarkupObject.cs
- ResourceDescriptionAttribute.cs
- HyperLinkDataBindingHandler.cs
- ImplicitInputBrush.cs
- TextBounds.cs
- ScrollBar.cs
- RegexTypeEditor.cs
- QueryFunctions.cs
- RemoteTokenFactory.cs
- TextSelection.cs
- ConnectionProviderAttribute.cs
- XmlQueryOutput.cs
- DirectoryInfo.cs
- OdbcConnection.cs
- X509UI.cs
- XmlDataSource.cs
- CreateParams.cs
- String.cs
- AutomationPattern.cs
- ColorContext.cs
- MetaData.cs
- OleDbTransaction.cs
- FormViewPageEventArgs.cs
- OleDbConnectionFactory.cs
- SspiWrapper.cs
- RectAnimation.cs
- FunctionDescription.cs
- NativeStructs.cs
- ListParaClient.cs
- StylusButton.cs
- StylusPlugin.cs
- EntitySetBaseCollection.cs
- TimeStampChecker.cs
- ObjectQueryProvider.cs
- SqlErrorCollection.cs
- EditingMode.cs
- SqlError.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- GridItemPattern.cs
- DesignerSerializationVisibilityAttribute.cs
- BinarySerializer.cs
- DateRangeEvent.cs
- RotateTransform3D.cs
- ConnectionStringEditor.cs
- DbDataSourceEnumerator.cs
- DateTimeConverter.cs
- ScrollEventArgs.cs
- EventMappingSettingsCollection.cs
- HttpWebRequest.cs
- SqlParameter.cs
- DataGridViewTextBoxEditingControl.cs