Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DecimalMinMaxAggregationOperator.cs
- DrawListViewColumnHeaderEventArgs.cs
- HwndHost.cs
- ClientUIRequest.cs
- Rotation3DAnimationBase.cs
- SamlSerializer.cs
- CorrelationValidator.cs
- WebBrowser.cs
- SmiEventSink_DeferedProcessing.cs
- Events.cs
- BackStopAuthenticationModule.cs
- GraphicsContainer.cs
- WindowsSysHeader.cs
- Environment.cs
- XPathDocument.cs
- SafeSecurityHelper.cs
- ListComponentEditor.cs
- TypedDatasetGenerator.cs
- TraceContext.cs
- ToolboxItemAttribute.cs
- PhysicalOps.cs
- MemberRelationshipService.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- TextCharacters.cs
- XhtmlCssHandler.cs
- QueryPageSettingsEventArgs.cs
- XmlSchemaAttributeGroup.cs
- RegexGroup.cs
- CodeValidator.cs
- ISAPIWorkerRequest.cs
- UidManager.cs
- TargetControlTypeAttribute.cs
- HttpInputStream.cs
- SetterBaseCollection.cs
- ByteStream.cs
- BasePropertyDescriptor.cs
- UrlAuthorizationModule.cs
- AuthorizationRule.cs
- PowerStatus.cs
- IdentityHolder.cs
- SqlTypeConverter.cs
- ViewManager.cs
- PopupRootAutomationPeer.cs
- QuaternionRotation3D.cs
- StreamUpdate.cs
- OdbcConnectionString.cs
- ReferenceService.cs
- BindingContext.cs
- FormsAuthenticationCredentials.cs
- LinkClickEvent.cs
- HelpEvent.cs
- RepeatButton.cs
- BrowserCapabilitiesCodeGenerator.cs
- TraceRecord.cs
- ServiceHostingEnvironment.cs
- TokenCreationException.cs
- TextRangeEditLists.cs
- ApplicationServicesHostFactory.cs
- PseudoWebRequest.cs
- JsonWriter.cs
- SystemPens.cs
- NullableDoubleAverageAggregationOperator.cs
- EraserBehavior.cs
- WebBrowsableAttribute.cs
- DataGridColumnCollection.cs
- ResourceContainer.cs
- SystemColors.cs
- SecurityRuntime.cs
- DrawingBrush.cs
- ProxyManager.cs
- MenuAdapter.cs
- EventToken.cs
- UnsafeNativeMethods.cs
- PolicyVersionConverter.cs
- ButtonBaseDesigner.cs
- Control.cs
- GridViewCancelEditEventArgs.cs
- SqlLiftWhereClauses.cs
- XamlSerializationHelper.cs
- RouteTable.cs
- ListDesigner.cs
- EntityTypeBase.cs
- ImportContext.cs
- GraphicsContext.cs
- SafeNativeMethods.cs
- MenuRenderer.cs
- SQLBinary.cs
- CompilerTypeWithParams.cs
- FontSource.cs
- BitmapDownload.cs
- SaveFileDialog.cs
- DynamicILGenerator.cs
- ProgressBarAutomationPeer.cs
- SecurityImpersonationBehavior.cs
- AttributeCollection.cs
- SeekableMessageNavigator.cs
- BitmapPalettes.cs
- LambdaExpression.cs
- MaskDescriptors.cs
- _SslSessionsCache.cs