Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] - seperated UserInitiatedNaviagtionPermission from InternalPermission.cs
// 02/28/05 : [....] - 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
- SQLInt16.cs
- CapabilitiesAssignment.cs
- RC2.cs
- HttpStreamMessage.cs
- CodeTypeDeclaration.cs
- CodeObject.cs
- Query.cs
- LassoSelectionBehavior.cs
- QueryResponse.cs
- PrivilegeNotHeldException.cs
- Rect.cs
- DesignerLinkAdapter.cs
- XmlFormatExtensionPointAttribute.cs
- Trustee.cs
- BinaryKeyIdentifierClause.cs
- Invariant.cs
- OleDbStruct.cs
- ValidationSummary.cs
- WebResourceUtil.cs
- TdsParserStateObject.cs
- XmlUTF8TextReader.cs
- XmlIlTypeHelper.cs
- XPathPatternParser.cs
- PageThemeParser.cs
- StringBuilder.cs
- QuarticEase.cs
- UnSafeCharBuffer.cs
- PauseStoryboard.cs
- BrushMappingModeValidation.cs
- XmlWriterSettings.cs
- ContentPosition.cs
- UserThread.cs
- TopClause.cs
- OracleParameterCollection.cs
- GenericRootAutomationPeer.cs
- AlternationConverter.cs
- PagesChangedEventArgs.cs
- FileLogRecordStream.cs
- RegistrySecurity.cs
- TreeView.cs
- LinkLabelLinkClickedEvent.cs
- CryptoKeySecurity.cs
- SQLByteStorage.cs
- SafeBitVector32.cs
- Substitution.cs
- DocumentReference.cs
- TagPrefixAttribute.cs
- PingReply.cs
- ClientBuildManagerCallback.cs
- FunctionImportMapping.cs
- ColumnClickEvent.cs
- RuleAttributes.cs
- TransactionFlowBindingElement.cs
- Vector.cs
- FolderNameEditor.cs
- ConfigXmlWhitespace.cs
- UIAgentRequest.cs
- FixedPage.cs
- GotoExpression.cs
- WebServiceFaultDesigner.cs
- DataGridViewComboBoxEditingControl.cs
- DataGridViewBand.cs
- RemoteWebConfigurationHost.cs
- ColumnCollectionEditor.cs
- SingleStorage.cs
- DispatcherHookEventArgs.cs
- PrintDialogException.cs
- NullableConverter.cs
- ImageConverter.cs
- FixedSOMPageElement.cs
- NoneExcludedImageIndexConverter.cs
- SelectionEditingBehavior.cs
- DataGridViewBand.cs
- BookmarkResumptionRecord.cs
- XmlNodeList.cs
- CustomSignedXml.cs
- MatrixTransform3D.cs
- ObjectManager.cs
- FunctionDescription.cs
- WebPartRestoreVerb.cs
- WsdlImporterElement.cs
- SizeIndependentAnimationStorage.cs
- AbandonedMutexException.cs
- ClientUtils.cs
- XPathSelfQuery.cs
- FieldToken.cs
- FunctionDescription.cs
- CategoryAttribute.cs
- BamlMapTable.cs
- VerificationException.cs
- GeneralTransform3DGroup.cs
- SqlConnectionPoolProviderInfo.cs
- DesignerObject.cs
- XmlDataSourceNodeDescriptor.cs
- GenerateDerivedKeyRequest.cs
- ToolStripDropTargetManager.cs
- RuleSettingsCollection.cs
- controlskin.cs
- TransactionState.cs
- IdentityModelDictionary.cs