Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UpdateInfo.cs
- GeneralTransform3DCollection.cs
- Rotation3DAnimationUsingKeyFrames.cs
- PropertyPathConverter.cs
- KeyNotFoundException.cs
- sqlcontext.cs
- SafeUserTokenHandle.cs
- SourceElementsCollection.cs
- HtmlControlPersistable.cs
- FormViewUpdateEventArgs.cs
- SafeProcessHandle.cs
- HwndAppCommandInputProvider.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- NavigationFailedEventArgs.cs
- NegotiationTokenAuthenticatorStateCache.cs
- ParentQuery.cs
- Sql8ConformanceChecker.cs
- ReceiveParametersContent.cs
- Repeater.cs
- ProcessHost.cs
- RawStylusInputReport.cs
- QueryContinueDragEventArgs.cs
- COM2TypeInfoProcessor.cs
- WebSysDefaultValueAttribute.cs
- StringStorage.cs
- CmsUtils.cs
- WebPartConnectionsCancelVerb.cs
- PageThemeCodeDomTreeGenerator.cs
- SizeChangedInfo.cs
- JavascriptCallbackMessageInspector.cs
- XmlCharacterData.cs
- HttpModuleAction.cs
- FusionWrap.cs
- FixedStringLookup.cs
- RegionData.cs
- X509ServiceCertificateAuthenticationElement.cs
- ProfileModule.cs
- Win32.cs
- LinqDataView.cs
- TypeLoadException.cs
- StrokeCollection2.cs
- TdsParserHelperClasses.cs
- WebBodyFormatMessageProperty.cs
- SiteMapPath.cs
- SystemDropShadowChrome.cs
- ClientUriBehavior.cs
- BadImageFormatException.cs
- RuleSettings.cs
- RadioButton.cs
- DataGridViewColumn.cs
- OrderedEnumerableRowCollection.cs
- OdbcStatementHandle.cs
- CopyCodeAction.cs
- AuthenticateEventArgs.cs
- RenderingEventArgs.cs
- RepeatButtonAutomationPeer.cs
- SafePEFileHandle.cs
- FontStretches.cs
- MessageBox.cs
- AppDomainCompilerProxy.cs
- PrimitiveXmlSerializers.cs
- BamlLocalizableResourceKey.cs
- ReadOnlyObservableCollection.cs
- CharacterBufferReference.cs
- ImageCodecInfoPrivate.cs
- VirtualizingStackPanel.cs
- BamlResourceSerializer.cs
- IdentityHolder.cs
- RegexMatch.cs
- NativeMethods.cs
- BufferModeSettings.cs
- ComplexTypeEmitter.cs
- GridPatternIdentifiers.cs
- BindingList.cs
- ActivityStateRecord.cs
- Lookup.cs
- ModelVisual3D.cs
- HashHelper.cs
- HttpPostedFileBase.cs
- GregorianCalendar.cs
- CryptographicAttribute.cs
- StatusBarDrawItemEvent.cs
- BindingsSection.cs
- CustomAttribute.cs
- InvalidComObjectException.cs
- Span.cs
- SignatureResourcePool.cs
- UnitControl.cs
- MimePart.cs
- ConstraintCollection.cs
- XmlDocumentSchema.cs
- TableLayoutColumnStyleCollection.cs
- RadioButtonFlatAdapter.cs
- DefaultTextStoreTextComposition.cs
- DbConnectionPoolGroupProviderInfo.cs
- Base64Encoder.cs
- TextTreePropertyUndoUnit.cs
- Repeater.cs
- XmlSchemaRedefine.cs
- TextEditorDragDrop.cs