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
- PerformanceCounterPermission.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- EmptyCollection.cs
- NamedElement.cs
- EntityViewGenerator.cs
- SchemaName.cs
- DbConvert.cs
- ToolStripSplitStackLayout.cs
- FontWeights.cs
- UserNameSecurityTokenAuthenticator.cs
- MethodCallTranslator.cs
- InvalidFilterCriteriaException.cs
- SinglePageViewer.cs
- BitmapEncoder.cs
- TTSVoice.cs
- CodeTypeReferenceCollection.cs
- ActivationServices.cs
- AssemblyName.cs
- VideoDrawing.cs
- ScriptResourceAttribute.cs
- SchemaAttDef.cs
- TreeView.cs
- XamlReader.cs
- HttpListenerContext.cs
- SystemWebCachingSectionGroup.cs
- WebColorConverter.cs
- FontDriver.cs
- GridViewRowCollection.cs
- TimeZoneNotFoundException.cs
- Clipboard.cs
- GroupBox.cs
- ExcCanonicalXml.cs
- XmlChoiceIdentifierAttribute.cs
- XmlSiteMapProvider.cs
- Button.cs
- BrowserInteropHelper.cs
- XmlUtilWriter.cs
- EntityDataSourceView.cs
- HttpClientCertificate.cs
- _HelperAsyncResults.cs
- TabRenderer.cs
- WrapPanel.cs
- DependencyPropertyValueSerializer.cs
- HtmlControl.cs
- Clock.cs
- MonikerUtility.cs
- NavigatorOutput.cs
- StickyNoteContentControl.cs
- UnionCqlBlock.cs
- XmlQueryTypeFactory.cs
- _OSSOCK.cs
- ProofTokenCryptoHandle.cs
- XamlGridLengthSerializer.cs
- XamlFigureLengthSerializer.cs
- Oci.cs
- DataRecordObjectView.cs
- WebServiceTypeData.cs
- ResolveNextArgumentWorkItem.cs
- SafeEventLogWriteHandle.cs
- WebPartVerbsEventArgs.cs
- TcpClientChannel.cs
- Rect3D.cs
- MediaContextNotificationWindow.cs
- ImportOptions.cs
- DescendentsWalker.cs
- AlgoModule.cs
- DataGridViewColumnEventArgs.cs
- ChangePassword.cs
- HostedElements.cs
- SizeConverter.cs
- ButtonBaseAutomationPeer.cs
- PageParser.cs
- SqlExpressionNullability.cs
- ArgumentException.cs
- BitmapEffectState.cs
- ChannelServices.cs
- IteratorFilter.cs
- DbCommandTree.cs
- CollaborationHelperFunctions.cs
- HtmlEncodedRawTextWriter.cs
- WindowsTreeView.cs
- CompilationUnit.cs
- IisTraceWebEventProvider.cs
- MailWebEventProvider.cs
- SqlUdtInfo.cs
- Relationship.cs
- SubclassTypeValidator.cs
- SoapInteropTypes.cs
- Serializer.cs
- IPAddressCollection.cs
- Buffer.cs
- ObjectDataProvider.cs
- IndexerNameAttribute.cs
- WebPartEventArgs.cs
- Splitter.cs
- SHA512Managed.cs
- InvokeMemberBinder.cs
- HttpPostProtocolReflector.cs
- XPathAncestorIterator.cs
- XamlParser.cs