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
- WebPartZoneDesigner.cs
- Cursor.cs
- OptimisticConcurrencyException.cs
- ValueType.cs
- ValidationSummaryDesigner.cs
- ConnectionProviderAttribute.cs
- TemplateNameScope.cs
- CodeTypeConstructor.cs
- JavaScriptString.cs
- OptimisticConcurrencyException.cs
- BinaryUtilClasses.cs
- ServiceOperationParameter.cs
- SqlTriggerContext.cs
- TableSectionStyle.cs
- Annotation.cs
- ServiceDocumentFormatter.cs
- NotSupportedException.cs
- DispatcherTimer.cs
- MbpInfo.cs
- XmlUtilWriter.cs
- SqlRowUpdatingEvent.cs
- BrowserTree.cs
- ChangeNode.cs
- IRCollection.cs
- Context.cs
- KeyedByTypeCollection.cs
- LogRestartAreaEnumerator.cs
- DropDownButton.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XmlAtomErrorReader.cs
- CodeStatementCollection.cs
- XmlQueryContext.cs
- QilExpression.cs
- recordstatefactory.cs
- DocumentViewerBase.cs
- FileLoadException.cs
- XmlSerializerFactory.cs
- IntranetCredentialPolicy.cs
- Bold.cs
- ConfigurationElementCollection.cs
- VisualTarget.cs
- ConfigurationFileMap.cs
- WSMessageEncoding.cs
- ParameterInfo.cs
- SafeEventLogReadHandle.cs
- SqlMetaData.cs
- Color.cs
- HttpCookiesSection.cs
- NumericUpDown.cs
- CurrentChangedEventManager.cs
- SchemaElementDecl.cs
- XPathChildIterator.cs
- DrawingBrush.cs
- Mapping.cs
- SqlServer2KCompatibilityCheck.cs
- SqlDependencyUtils.cs
- IdentifierService.cs
- ProjectionPruner.cs
- UntrustedRecipientException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CompareInfo.cs
- SingleAnimationUsingKeyFrames.cs
- XmlElement.cs
- EncryptedKeyIdentifierClause.cs
- NativeActivity.cs
- DropDownButton.cs
- NavigationService.cs
- Timer.cs
- KeyEventArgs.cs
- SchemaImporterExtensionElementCollection.cs
- SqlStream.cs
- EnterpriseServicesHelper.cs
- ModelFunction.cs
- SerialStream.cs
- SettingsProviderCollection.cs
- WindowsSlider.cs
- BindingMAnagerBase.cs
- SQLInt32Storage.cs
- RepeatInfo.cs
- SHA256Managed.cs
- LongValidator.cs
- IImplicitResourceProvider.cs
- WebPartDesigner.cs
- DictionaryContent.cs
- ISO2022Encoding.cs
- compensatingcollection.cs
- Camera.cs
- DataBoundLiteralControl.cs
- WpfWebRequestHelper.cs
- StylusButton.cs
- HtmlWindowCollection.cs
- HMACSHA1.cs
- TextSelection.cs
- RemoveStoryboard.cs
- JavaScriptSerializer.cs
- SqlBooleanMismatchVisitor.cs
- OpenTypeLayout.cs
- XmlCharType.cs
- SimpleBitVector32.cs
- HelpProvider.cs