Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ExternalException.cs
- GradientStop.cs
- TableRowCollection.cs
- MultipleViewPattern.cs
- FamilyCollection.cs
- COM2PropertyDescriptor.cs
- SafeNativeMethodsMilCoreApi.cs
- Size3D.cs
- SiteMapPath.cs
- SubqueryRules.cs
- XmlSchemaValidator.cs
- BufferedConnection.cs
- XmlSerializableReader.cs
- __Filters.cs
- TreeViewAutomationPeer.cs
- ScrollData.cs
- DisplayNameAttribute.cs
- TextBox.cs
- SQLByte.cs
- HwndHost.cs
- AttributeProviderAttribute.cs
- RenderingBiasValidation.cs
- BoolExpr.cs
- TransformedBitmap.cs
- TreeNodeCollection.cs
- ActivityCollectionMarkupSerializer.cs
- FigureParaClient.cs
- SafeFileMapViewHandle.cs
- TreeIterator.cs
- Helper.cs
- SystemKeyConverter.cs
- XmlC14NWriter.cs
- PropertyEntry.cs
- ReliableSessionBindingElement.cs
- UIElement3D.cs
- MenuCommand.cs
- ProxyAttribute.cs
- ToolStripHighContrastRenderer.cs
- TextEffect.cs
- UnsupportedPolicyOptionsException.cs
- CommandField.cs
- PeerInvitationResponse.cs
- Privilege.cs
- DynamicValidator.cs
- WindowsHyperlink.cs
- ConfigXmlWhitespace.cs
- EventNotify.cs
- RoleService.cs
- Code.cs
- DecoderFallbackWithFailureFlag.cs
- LinqDataSourceView.cs
- BaseValidator.cs
- XPathParser.cs
- FrameworkElementAutomationPeer.cs
- TextOutput.cs
- Lasso.cs
- DesignerTransaction.cs
- Visual3D.cs
- XAMLParseException.cs
- Glyph.cs
- QueryOutputWriter.cs
- PointAnimationClockResource.cs
- PageParser.cs
- MetadataItem.cs
- TCPClient.cs
- COM2IDispatchConverter.cs
- SerializerDescriptor.cs
- GridViewRowEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridViewAdvancedBorderStyle.cs
- ConnectionManagementElementCollection.cs
- ISessionStateStore.cs
- DataPagerFieldCommandEventArgs.cs
- DBConnectionString.cs
- EastAsianLunisolarCalendar.cs
- ConfigurationElementProperty.cs
- ProvideValueServiceProvider.cs
- LassoSelectionBehavior.cs
- DataGridViewSortCompareEventArgs.cs
- XmlSchemaSimpleTypeList.cs
- XmlSchemas.cs
- PreviewPageInfo.cs
- ProcessStartInfo.cs
- FamilyMap.cs
- XmlAnyElementAttributes.cs
- SEHException.cs
- ContextProperty.cs
- WebControlsSection.cs
- ObjectContext.cs
- InputScopeAttribute.cs
- SoapExtension.cs
- BaseUriHelper.cs
- MetadataArtifactLoaderCompositeFile.cs
- SafeArrayTypeMismatchException.cs
- XamlFrame.cs
- SQLDecimal.cs
- AnnotationDocumentPaginator.cs
- Int32CAMarshaler.cs
- XmlnsCompatibleWithAttribute.cs
- TreeNodeClickEventArgs.cs