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
- BinaryWriter.cs
- RadioButtonAutomationPeer.cs
- MutexSecurity.cs
- XmlLinkedNode.cs
- RowType.cs
- CssTextWriter.cs
- KeyInstance.cs
- DataObjectEventArgs.cs
- ProxyAttribute.cs
- OutputCacheSettingsSection.cs
- ListParaClient.cs
- InstanceDescriptor.cs
- StorageEntityTypeMapping.cs
- RayMeshGeometry3DHitTestResult.cs
- DocumentViewerBaseAutomationPeer.cs
- SequenceQuery.cs
- TransformBlockRequest.cs
- NumericPagerField.cs
- XmlSchemaSimpleTypeUnion.cs
- _Events.cs
- KnownColorTable.cs
- NameNode.cs
- CultureNotFoundException.cs
- IntegrationExceptionEventArgs.cs
- CustomMenuItemCollection.cs
- DataBindingValueUIHandler.cs
- SwitchLevelAttribute.cs
- SoapSchemaMember.cs
- EmptyStringExpandableObjectConverter.cs
- XmlUnspecifiedAttribute.cs
- RepeaterItemCollection.cs
- QuestionEventArgs.cs
- GridSplitter.cs
- FixedTextContainer.cs
- FixedSOMTextRun.cs
- ProcessThread.cs
- HtmlElement.cs
- WeakReference.cs
- DesignerLoader.cs
- RightsManagementEncryptedStream.cs
- ProjectedSlot.cs
- XmlSchemaSimpleTypeRestriction.cs
- TransformConverter.cs
- StringCollectionEditor.cs
- FontDifferentiator.cs
- Win32.cs
- Variant.cs
- TextRangeSerialization.cs
- SrgsElementFactoryCompiler.cs
- ContextStaticAttribute.cs
- DigitShape.cs
- EventData.cs
- LinearGradientBrush.cs
- ColorInterpolationModeValidation.cs
- TreeNodeCollection.cs
- LinkLabelLinkClickedEvent.cs
- TileModeValidation.cs
- ToolStripPanelRow.cs
- NetTcpBindingElement.cs
- KnownBoxes.cs
- regiisutil.cs
- ContainerControlDesigner.cs
- Model3D.cs
- ProviderMetadata.cs
- ISessionStateStore.cs
- ZoomingMessageFilter.cs
- DispatchChannelSink.cs
- DBPropSet.cs
- CompileXomlTask.cs
- CharacterBuffer.cs
- ForEachAction.cs
- ByteStack.cs
- StructureChangedEventArgs.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlSchemaSimpleType.cs
- printdlgexmarshaler.cs
- ReferencedAssemblyResolver.cs
- FormsIdentity.cs
- ContentFileHelper.cs
- RegistrationServices.cs
- WindowsStreamSecurityUpgradeProvider.cs
- VersionConverter.cs
- XmlSchemaGroupRef.cs
- DriveNotFoundException.cs
- TemplateEditingService.cs
- EdmSchemaAttribute.cs
- VisualTreeUtils.cs
- EventProviderTraceListener.cs
- SeparatorAutomationPeer.cs
- FieldToken.cs
- CallbackException.cs
- SqlDataSourceFilteringEventArgs.cs
- FontSizeConverter.cs
- Decimal.cs
- SynchronizingStream.cs
- LightweightEntityWrapper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CapabilitiesUse.cs
- EmptyCollection.cs
- CreateDataSourceDialog.cs