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
- RNGCryptoServiceProvider.cs
- IndexerReference.cs
- FacetDescriptionElement.cs
- SmiXetterAccessMap.cs
- FullTextBreakpoint.cs
- BoundColumn.cs
- DynamicActivityProperty.cs
- SafeIUnknown.cs
- ProgressChangedEventArgs.cs
- QilLiteral.cs
- WebPartVerb.cs
- _NTAuthentication.cs
- IssuedSecurityTokenParameters.cs
- DataTableMapping.cs
- Ops.cs
- ButtonStandardAdapter.cs
- ContentValidator.cs
- DbConnectionPoolIdentity.cs
- NativeMethods.cs
- GregorianCalendarHelper.cs
- HtmlElementEventArgs.cs
- Int16Animation.cs
- EdmItemCollection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DataGridViewCellValidatingEventArgs.cs
- Quaternion.cs
- ZeroOpNode.cs
- ExecutionEngineException.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- MeshGeometry3D.cs
- URLAttribute.cs
- PaginationProgressEventArgs.cs
- SqlGenerator.cs
- ObjectSecurity.cs
- ConfigurationSchemaErrors.cs
- OutputWindow.cs
- WindowsAuthenticationEventArgs.cs
- BuildProviderCollection.cs
- IEnumerable.cs
- List.cs
- PeerUnsafeNativeCryptMethods.cs
- LocationChangedEventArgs.cs
- Stacktrace.cs
- HttpModulesSection.cs
- HttpCookiesSection.cs
- ServiceDescriptionImporter.cs
- CodeExporter.cs
- JournalNavigationScope.cs
- StringFunctions.cs
- BaseHashHelper.cs
- TextParagraphCache.cs
- UserControlDesigner.cs
- DataGridViewColumnDesigner.cs
- OleDbWrapper.cs
- DesignerActionVerbItem.cs
- DictionaryContent.cs
- GridItemPattern.cs
- BStrWrapper.cs
- SplashScreen.cs
- VectorKeyFrameCollection.cs
- XsdDataContractImporter.cs
- LinqDataSourceEditData.cs
- DefaultAssemblyResolver.cs
- OracleString.cs
- WmlValidatorAdapter.cs
- ColumnMapVisitor.cs
- ExclusiveHandle.cs
- InternalResources.cs
- MenuItem.cs
- WebPartEditorApplyVerb.cs
- RegexFCD.cs
- FormViewRow.cs
- DataGridViewRowPostPaintEventArgs.cs
- NativeMethodsOther.cs
- UrlAuthFailedErrorFormatter.cs
- TableItemPattern.cs
- GiveFeedbackEventArgs.cs
- TransformGroup.cs
- ReadOnlyNameValueCollection.cs
- ConstraintStruct.cs
- HwndMouseInputProvider.cs
- LingerOption.cs
- Menu.cs
- Animatable.cs
- AppearanceEditorPart.cs
- NumericUpDownAcceleration.cs
- SelectionListDesigner.cs
- ThicknessKeyFrameCollection.cs
- EventPropertyMap.cs
- UndoManager.cs
- LayoutInformation.cs
- XmlArrayAttribute.cs
- CompareValidator.cs
- GroupByExpressionRewriter.cs
- DataGridViewComboBoxColumn.cs
- Line.cs
- DetailsView.cs
- JsonEnumDataContract.cs
- BaseValidator.cs
- DesignTimeType.cs