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
- PackageRelationship.cs
- SapiGrammar.cs
- BitStack.cs
- AdPostCacheSubstitution.cs
- LoginDesigner.cs
- DispatcherExceptionEventArgs.cs
- Blend.cs
- EventWaitHandle.cs
- X509Certificate2Collection.cs
- CodeTypeMember.cs
- PlainXmlWriter.cs
- ReservationCollection.cs
- MemoryResponseElement.cs
- rsa.cs
- BinarySerializer.cs
- CqlParser.cs
- FormatControl.cs
- SiteMapNodeCollection.cs
- SharedPersonalizationStateInfo.cs
- ByteAnimation.cs
- CrossContextChannel.cs
- PasswordDeriveBytes.cs
- ApplyHostConfigurationBehavior.cs
- WSTransactionSection.cs
- DbParameterHelper.cs
- UnsupportedPolicyOptionsException.cs
- ConstraintEnumerator.cs
- ResXResourceWriter.cs
- FamilyTypeface.cs
- DirectoryObjectSecurity.cs
- RenderDataDrawingContext.cs
- ColorConverter.cs
- Util.cs
- BrowserCapabilitiesCompiler.cs
- ComponentCommands.cs
- XmlDictionaryWriter.cs
- IdnMapping.cs
- CompiledWorkflowDefinitionContext.cs
- RemotingConfiguration.cs
- DataGridViewSelectedCellCollection.cs
- HttpWrapper.cs
- BufferModesCollection.cs
- CmsInterop.cs
- SystemDropShadowChrome.cs
- CryptoProvider.cs
- AutomationPeer.cs
- SHA1.cs
- HttpFileCollection.cs
- BlockingCollection.cs
- NameValueFileSectionHandler.cs
- Literal.cs
- QueryPageSettingsEventArgs.cs
- TableParagraph.cs
- DataFormat.cs
- TdsParser.cs
- CodeCastExpression.cs
- ObjectStorage.cs
- DummyDataSource.cs
- Panel.cs
- PropertyIDSet.cs
- ProviderConnectionPoint.cs
- ResourceType.cs
- ObjectItemNoOpAssemblyLoader.cs
- Point3DKeyFrameCollection.cs
- SettingsProperty.cs
- ToolStripMenuItem.cs
- WCFServiceClientProxyGenerator.cs
- SerializationHelper.cs
- IISUnsafeMethods.cs
- KnowledgeBase.cs
- ISO2022Encoding.cs
- ProcessMessagesAsyncResult.cs
- Terminate.cs
- SecurityProtocolFactory.cs
- TableLayout.cs
- BufferedStream2.cs
- FullTextLine.cs
- InvalidProgramException.cs
- Normalization.cs
- BroadcastEventHelper.cs
- ConnectionProviderAttribute.cs
- ViewGenResults.cs
- ToolStripArrowRenderEventArgs.cs
- FusionWrap.cs
- SiteMapProvider.cs
- OleDbDataAdapter.cs
- XmlSchemaAppInfo.cs
- CodeCastExpression.cs
- DesignTimeParseData.cs
- CharConverter.cs
- InvalidDataException.cs
- prefixendpointaddressmessagefiltertable.cs
- XPathBinder.cs
- DoubleAnimationUsingPath.cs
- OrderByBuilder.cs
- Int32Storage.cs
- SqlMethodTransformer.cs
- ConfigurationProperty.cs
- followingsibling.cs
- TagNameToTypeMapper.cs