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
- IntegerFacetDescriptionElement.cs
- AuthenticationException.cs
- TextUtf8RawTextWriter.cs
- QueryOptionExpression.cs
- InputManager.cs
- ByteAnimationUsingKeyFrames.cs
- ViewCellSlot.cs
- CategoryAttribute.cs
- LinkClickEvent.cs
- NgenServicingAttributes.cs
- DependencyObjectCodeDomSerializer.cs
- PropertyTabAttribute.cs
- InputLanguageProfileNotifySink.cs
- SoapProtocolImporter.cs
- BaseUriHelper.cs
- DataSourceView.cs
- KeyGestureConverter.cs
- EventArgs.cs
- PropertyGridEditorPart.cs
- ExtractedStateEntry.cs
- ChannelSinkStacks.cs
- PanelStyle.cs
- DateTimePickerDesigner.cs
- AutomationIdentifier.cs
- SelectionProcessor.cs
- BindingGraph.cs
- SqlDataSourceFilteringEventArgs.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SqlNodeAnnotation.cs
- SHA1Cng.cs
- WebPartConnectionsCloseVerb.cs
- ContainerParaClient.cs
- DBSqlParserTable.cs
- LocalValueEnumerator.cs
- ProfilePropertyNameValidator.cs
- SystemIPv4InterfaceProperties.cs
- LocalizableResourceBuilder.cs
- DrawingCollection.cs
- TypeTypeConverter.cs
- UnsafeNativeMethods.cs
- HitTestResult.cs
- ResetableIterator.cs
- PersonalizationState.cs
- TableRowsCollectionEditor.cs
- HotCommands.cs
- XmlDocument.cs
- ParsedRoute.cs
- IFlowDocumentViewer.cs
- BaseTreeIterator.cs
- ExpressionSelection.cs
- QuaternionAnimation.cs
- RuleRefElement.cs
- BypassElementCollection.cs
- ConcurrentBag.cs
- BaseTypeViewSchema.cs
- CodeGen.cs
- CorruptStoreException.cs
- Animatable.cs
- ManifestResourceInfo.cs
- SocketStream.cs
- RegistryConfigurationProvider.cs
- DataGridViewHeaderCell.cs
- BinaryReader.cs
- SqlCaseSimplifier.cs
- RichTextBoxAutomationPeer.cs
- followingquery.cs
- GeneralTransform3D.cs
- DataObject.cs
- DisposableCollectionWrapper.cs
- GraphicsPathIterator.cs
- DrawingImage.cs
- IISMapPath.cs
- AssemblyUtil.cs
- ACE.cs
- TransferRequestHandler.cs
- DbConnectionPoolOptions.cs
- DbMetaDataColumnNames.cs
- ListView.cs
- ColorPalette.cs
- Opcode.cs
- MaskedTextProvider.cs
- XmlSchemaInfo.cs
- NativeMethods.cs
- Expressions.cs
- TextTreeDeleteContentUndoUnit.cs
- PeerApplication.cs
- WebPartMenu.cs
- SettingsPropertyIsReadOnlyException.cs
- WindowsAltTab.cs
- XmlSchemaDatatype.cs
- MSHTMLHostUtil.cs
- HtmlTableRowCollection.cs
- TypeDependencyAttribute.cs
- ExpressionConverter.cs
- HttpClientCertificate.cs
- SqlTrackingQuery.cs
- QilParameter.cs
- PersonalizationAdministration.cs
- PropertyInfo.cs
- Brush.cs