Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / permissions / UserInitiatedNavigationPermission.cs / 1305600 / 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 : marka - Created //--------------------------------------------------------------------------- using System; using System.Security; using System.Security.Permissions; using System.Windows; using MS.Internal.Permissions; namespace MS.Internal.Permissions { [Serializable] internal class UserInitiatedNavigationPermission : InternalParameterlessPermissionBase { public UserInitiatedNavigationPermission() : this(PermissionState.Unrestricted) { } public UserInitiatedNavigationPermission(PermissionState state): base(state) { } 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 : [....] - seperated UserInitiatedNaviagtionPermission from InternalPermission.cs // 02/28/05 : marka - Created //--------------------------------------------------------------------------- using System; using System.Security; using System.Security.Permissions; using System.Windows; using MS.Internal.Permissions; namespace MS.Internal.Permissions { [Serializable] internal class UserInitiatedNavigationPermission : InternalParameterlessPermissionBase { public UserInitiatedNavigationPermission() : this(PermissionState.Unrestricted) { } public UserInitiatedNavigationPermission(PermissionState state): base(state) { } 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
- ObjectStateEntry.cs
- PreviewPageInfo.cs
- MailDefinition.cs
- IncrementalHitTester.cs
- HtmlControlPersistable.cs
- IPHostEntry.cs
- PathSegmentCollection.cs
- SqlDataSourceEnumerator.cs
- mda.cs
- MemberAccessException.cs
- DrawingGroupDrawingContext.cs
- RegisteredDisposeScript.cs
- WeakReadOnlyCollection.cs
- FileAuthorizationModule.cs
- BamlRecords.cs
- WindowsMenu.cs
- HtmlLink.cs
- ArglessEventHandlerProxy.cs
- Timer.cs
- AttributeCollection.cs
- AstNode.cs
- Polygon.cs
- OSEnvironmentHelper.cs
- SqlHelper.cs
- SymbolEqualComparer.cs
- MethodMessage.cs
- UndoManager.cs
- CompositeControl.cs
- RemoteWebConfigurationHost.cs
- SamlAssertion.cs
- EdmSchemaError.cs
- FormViewRow.cs
- SmiTypedGetterSetter.cs
- ElementFactory.cs
- InputProcessorProfiles.cs
- HTMLTextWriter.cs
- MonthChangedEventArgs.cs
- TimestampInformation.cs
- Byte.cs
- ConfigXmlWhitespace.cs
- PreservationFileWriter.cs
- ConstructorExpr.cs
- DBCommandBuilder.cs
- WorkflowMessageEventHandler.cs
- Nullable.cs
- WebPartHeaderCloseVerb.cs
- HotSpotCollection.cs
- RecordsAffectedEventArgs.cs
- ToolStripSystemRenderer.cs
- ISAPIWorkerRequest.cs
- SvcMapFileLoader.cs
- CmsInterop.cs
- MultipartIdentifier.cs
- SplitContainer.cs
- ToolStripDropDownItemDesigner.cs
- TypeSchema.cs
- XmlSortKey.cs
- Evidence.cs
- BamlLocalizableResourceKey.cs
- Run.cs
- WrapPanel.cs
- XamlClipboardData.cs
- DataControlHelper.cs
- TemplateKey.cs
- Invariant.cs
- PathFigureCollection.cs
- XmlException.cs
- ContextMenuService.cs
- SessionPageStateSection.cs
- TypeInformation.cs
- DataServiceRequestException.cs
- Model3D.cs
- TypeInitializationException.cs
- ExpandCollapseProviderWrapper.cs
- _HelperAsyncResults.cs
- PublisherMembershipCondition.cs
- BindingWorker.cs
- ToolstripProfessionalRenderer.cs
- SmiGettersStream.cs
- OutputScopeManager.cs
- RefreshPropertiesAttribute.cs
- UpdateDelegates.Generated.cs
- SecurityRuntime.cs
- UInt16Storage.cs
- ByteKeyFrameCollection.cs
- EventDescriptorCollection.cs
- GroupLabel.cs
- HtmlEncodedRawTextWriter.cs
- KeyMatchBuilder.cs
- Stack.cs
- ListViewGroup.cs
- RequestResizeEvent.cs
- DefaultPropertyAttribute.cs
- RNGCryptoServiceProvider.cs
- AstNode.cs
- UnionExpr.cs
- OutputScopeManager.cs
- WinFormsSpinner.cs
- TextReturnReader.cs
- ThrowHelper.cs