Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ObjectDataProvider.cs
- SqlTypesSchemaImporter.cs
- PropertyToken.cs
- CodeCommentStatementCollection.cs
- RedirectionProxy.cs
- ModulesEntry.cs
- QueryPageSettingsEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- ComponentChangingEvent.cs
- XamlPointCollectionSerializer.cs
- DbQueryCommandTree.cs
- BitmapPalette.cs
- Type.cs
- ProcessHostServerConfig.cs
- PenThreadWorker.cs
- ClickablePoint.cs
- FileSystemEventArgs.cs
- TimeIntervalCollection.cs
- StsCommunicationException.cs
- Single.cs
- EntityKeyElement.cs
- Pair.cs
- WhitespaceReader.cs
- SafeProcessHandle.cs
- StatusBarPanelClickEvent.cs
- WorkflowDesigner.cs
- SpecialTypeDataContract.cs
- EntityDataSourceWizardForm.cs
- QilReference.cs
- WpfWebRequestHelper.cs
- WorkflowServiceHost.cs
- DataKey.cs
- RIPEMD160.cs
- Int32CAMarshaler.cs
- PageContent.cs
- WebConfigurationManager.cs
- EntityModelSchemaGenerator.cs
- HttpGetProtocolReflector.cs
- AsymmetricSignatureDeformatter.cs
- UnitySerializationHolder.cs
- ListViewItemSelectionChangedEvent.cs
- TextTreeTextBlock.cs
- StateRuntime.cs
- SqlParameterizer.cs
- ListBindingHelper.cs
- DbBuffer.cs
- DBSqlParser.cs
- CollectionDataContractAttribute.cs
- UnsafeNativeMethods.cs
- oledbmetadatacollectionnames.cs
- SiteOfOriginContainer.cs
- NamedPipeAppDomainProtocolHandler.cs
- StaticSiteMapProvider.cs
- CodePrimitiveExpression.cs
- Mapping.cs
- DataGridViewColumnEventArgs.cs
- AnnotationService.cs
- WmlFormAdapter.cs
- DbDataAdapter.cs
- RawStylusInputCustomData.cs
- DesignerActionItemCollection.cs
- DocumentViewerConstants.cs
- DataControlField.cs
- TextPointer.cs
- ConnectionManagementElement.cs
- NavigationProperty.cs
- XsltLoader.cs
- Compiler.cs
- DataSourceProvider.cs
- ForceCopyBuildProvider.cs
- HierarchicalDataBoundControlAdapter.cs
- PrintDialogDesigner.cs
- _UriTypeConverter.cs
- DataGridRowDetailsEventArgs.cs
- ReturnValue.cs
- SimpleTextLine.cs
- WebPartConnection.cs
- sqlnorm.cs
- InputLangChangeEvent.cs
- ByteStreamGeometryContext.cs
- TemplateBuilder.cs
- ViewManager.cs
- BuildProvider.cs
- webbrowsersite.cs
- SecurityUtils.cs
- CompilerTypeWithParams.cs
- SamlEvidence.cs
- Positioning.cs
- KeyInterop.cs
- CodeSubDirectoriesCollection.cs
- ExtenderProvidedPropertyAttribute.cs
- UIElement.cs
- IdentifierElement.cs
- InstanceKeyCompleteException.cs
- ThreadLocal.cs
- NestedContainer.cs
- DataGridViewCellLinkedList.cs
- EditorBrowsableAttribute.cs
- NavigateEvent.cs
- SiteMapHierarchicalDataSourceView.cs