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
- XmlSerializerSection.cs
- ClientRuntimeConfig.cs
- PopupEventArgs.cs
- SqlDataRecord.cs
- DesignerActionUIService.cs
- SerializeAbsoluteContext.cs
- IListConverters.cs
- ISFClipboardData.cs
- XmlQualifiedName.cs
- ListItemParagraph.cs
- XsdValidatingReader.cs
- StreamWriter.cs
- IndentedWriter.cs
- WebRequestModuleElementCollection.cs
- ScrollItemPattern.cs
- DtrList.cs
- ProcessDesigner.cs
- MobileListItem.cs
- BaseContextMenu.cs
- ComMethodElement.cs
- LineInfo.cs
- SRGSCompiler.cs
- MsmqChannelListenerBase.cs
- StrongNameKeyPair.cs
- SmtpTransport.cs
- Base64Decoder.cs
- HMACSHA256.cs
- PagedDataSource.cs
- InvalidEnumArgumentException.cs
- StrongNamePublicKeyBlob.cs
- OpenTypeLayout.cs
- Brush.cs
- DataGridViewComboBoxColumnDesigner.cs
- DictionaryContent.cs
- StackBuilderSink.cs
- SortAction.cs
- ComAwareEventInfo.cs
- XmlNamedNodeMap.cs
- TypeConverterHelper.cs
- XmlSchemaAttributeGroupRef.cs
- wgx_sdk_version.cs
- ReturnValue.cs
- DataGridItemCollection.cs
- CollectionBase.cs
- RequestQueue.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- FixedTextContainer.cs
- RepeaterDesigner.cs
- MutexSecurity.cs
- ResourceManagerWrapper.cs
- TypeLoader.cs
- Matrix3D.cs
- EffectiveValueEntry.cs
- XmlAttributes.cs
- HostingEnvironmentSection.cs
- XmlSchemaAppInfo.cs
- ErrorFormatter.cs
- AttributeAction.cs
- SingleAnimationUsingKeyFrames.cs
- UIElement3DAutomationPeer.cs
- Internal.cs
- _SSPISessionCache.cs
- querybuilder.cs
- XmlMembersMapping.cs
- BamlVersionHeader.cs
- RowUpdatedEventArgs.cs
- _SSPIWrapper.cs
- ProcessInfo.cs
- XmlObjectSerializer.cs
- CodeParameterDeclarationExpression.cs
- WrapPanel.cs
- ToolBar.cs
- CredentialCache.cs
- NonBatchDirectoryCompiler.cs
- DataServiceClientException.cs
- PolyLineSegmentFigureLogic.cs
- NamespaceList.cs
- RegistryDataKey.cs
- CacheEntry.cs
- CancellationScope.cs
- Visitors.cs
- DataFieldConverter.cs
- XmlAttributeAttribute.cs
- XmlDataLoader.cs
- GridViewHeaderRowPresenter.cs
- ExecutedRoutedEventArgs.cs
- ClientOptions.cs
- DateTimeFormatInfo.cs
- MediaElementAutomationPeer.cs
- RequestCachePolicy.cs
- ProcessThreadCollection.cs
- GlobalEventManager.cs
- PostBackOptions.cs
- SvcFileManager.cs
- SmtpException.cs
- MatrixStack.cs
- StreamFormatter.cs
- FreezableOperations.cs
- AnchoredBlock.cs
- GuidelineSet.cs