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
- XmlUTF8TextWriter.cs
- ByteStreamGeometryContext.cs
- AnnotationResourceCollection.cs
- unsafenativemethodsother.cs
- TypeNameConverter.cs
- ObjectListFieldsPage.cs
- PropertyManager.cs
- SettingsPropertyValue.cs
- RegexCode.cs
- XmlPropertyBag.cs
- CommandBinding.cs
- DataViewSettingCollection.cs
- UnauthorizedAccessException.cs
- DbDataSourceEnumerator.cs
- WinFormsComponentEditor.cs
- ElementProxy.cs
- AppLevelCompilationSectionCache.cs
- FileInfo.cs
- EventMappingSettingsCollection.cs
- BindingSource.cs
- RequestCacheManager.cs
- MethodMessage.cs
- ManagementClass.cs
- ApplicationSecurityManager.cs
- HttpAsyncResult.cs
- SelectionItemProviderWrapper.cs
- PresentationTraceSources.cs
- CompoundFileStreamReference.cs
- CompensationParticipant.cs
- DesignerSerializationManager.cs
- StandardCommands.cs
- HitTestDrawingContextWalker.cs
- ExtensionQuery.cs
- FixedTextSelectionProcessor.cs
- TextStore.cs
- PageHandlerFactory.cs
- TransformDescriptor.cs
- StatusBarItem.cs
- DataGridViewCellCollection.cs
- CompiledAction.cs
- Pkcs7Recipient.cs
- ManagementEventArgs.cs
- SamlSerializer.cs
- EasingKeyFrames.cs
- FormsIdentity.cs
- DrawingImage.cs
- NativeMethods.cs
- Globals.cs
- PeerApplicationLaunchInfo.cs
- KeyValueConfigurationCollection.cs
- RepeaterItemCollection.cs
- SessionStateModule.cs
- RolePrincipal.cs
- FontSizeConverter.cs
- TypedTableBase.cs
- VSDExceptions.cs
- SettingsPropertyIsReadOnlyException.cs
- DataSetUtil.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- PbrsForward.cs
- AllMembershipCondition.cs
- LayoutTable.cs
- FunctionDetailsReader.cs
- EntityContainerEmitter.cs
- XmlSchemaType.cs
- VerificationAttribute.cs
- TrailingSpaceComparer.cs
- MappableObjectManager.cs
- AuthenticationManager.cs
- Path.cs
- DiscoveryDocumentSerializer.cs
- BaseComponentEditor.cs
- InternalConfigRoot.cs
- SecurityUniqueId.cs
- Vector3DKeyFrameCollection.cs
- SiteOfOriginPart.cs
- PolicyValidator.cs
- RegexNode.cs
- TemporaryBitmapFile.cs
- CngProvider.cs
- PrePrepareMethodAttribute.cs
- RowSpanVector.cs
- CqlIdentifiers.cs
- ReflectTypeDescriptionProvider.cs
- LabelDesigner.cs
- Variant.cs
- SafeNativeMethods.cs
- NameNode.cs
- CancellableEnumerable.cs
- DateTimeValueSerializer.cs
- TrustSection.cs
- CommandEventArgs.cs
- ContentElementCollection.cs
- XmlBinaryWriterSession.cs
- AuthenticationModuleElement.cs
- FileSystemWatcher.cs
- PropertyTab.cs
- TableHeaderCell.cs
- RegionInfo.cs
- TreeView.cs