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
- PublishLicense.cs
- XmlExpressionDumper.cs
- TypeNameConverter.cs
- TimerEventSubscriptionCollection.cs
- MemberDomainMap.cs
- DataServiceBuildProvider.cs
- CachingParameterInspector.cs
- JoinElimination.cs
- DynamicQueryStringParameter.cs
- TreeNodeBindingCollection.cs
- CorePropertiesFilter.cs
- WorkflowRuntimeEndpoint.cs
- FileDialog_Vista_Interop.cs
- XsdBuilder.cs
- UriSchemeKeyedCollection.cs
- CatalogPartCollection.cs
- XmlComplianceUtil.cs
- Funcletizer.cs
- RsaSecurityKey.cs
- NotifyInputEventArgs.cs
- ResourceCategoryAttribute.cs
- TreeNodeStyleCollection.cs
- ChtmlFormAdapter.cs
- AlgoModule.cs
- LinearKeyFrames.cs
- DrawingBrush.cs
- PeerCredential.cs
- QilParameter.cs
- arc.cs
- GetPageNumberCompletedEventArgs.cs
- ipaddressinformationcollection.cs
- TemplateControl.cs
- ElementAction.cs
- PointAnimationUsingKeyFrames.cs
- XmlAttributeCache.cs
- ListenerElementsCollection.cs
- Environment.cs
- SqlCacheDependencyDatabaseCollection.cs
- CollectionViewProxy.cs
- HostedTcpTransportManager.cs
- GradientStop.cs
- Animatable.cs
- SelectionItemProviderWrapper.cs
- BasicHttpMessageSecurity.cs
- Attributes.cs
- DataServiceProcessingPipelineEventArgs.cs
- XmlTypeMapping.cs
- TableDesigner.cs
- RepeatEnumerable.cs
- ContractComponent.cs
- CommonGetThemePartSize.cs
- ResourceReader.cs
- ObjectStateEntry.cs
- SplineQuaternionKeyFrame.cs
- MultiPageTextView.cs
- KoreanLunisolarCalendar.cs
- VirtualPathUtility.cs
- QuaternionConverter.cs
- SystemColors.cs
- PartialClassGenerationTask.cs
- ListSortDescriptionCollection.cs
- X509Utils.cs
- ExpressionVisitor.cs
- PropertyMapper.cs
- MarginsConverter.cs
- PreApplicationStartMethodAttribute.cs
- TimeoutException.cs
- DataGridViewCheckBoxColumn.cs
- DSGeneratorProblem.cs
- WebReferencesBuildProvider.cs
- ServiceOperation.cs
- ProtocolsConfiguration.cs
- TemplatedAdorner.cs
- SqlException.cs
- X509Extension.cs
- ToolStripCodeDomSerializer.cs
- ExceptionValidationRule.cs
- EdmConstants.cs
- LessThanOrEqual.cs
- CodeAttributeArgumentCollection.cs
- LoggedException.cs
- SequentialOutput.cs
- InvalidOperationException.cs
- XamlStream.cs
- TimeSpanStorage.cs
- xmlglyphRunInfo.cs
- UserPersonalizationStateInfo.cs
- Transform3DGroup.cs
- TreePrinter.cs
- NullableIntSumAggregationOperator.cs
- CommonDialog.cs
- columnmapkeybuilder.cs
- Command.cs
- Config.cs
- ToolStripMenuItemCodeDomSerializer.cs
- OledbConnectionStringbuilder.cs
- FontWeights.cs
- ReachDocumentPageSerializer.cs
- FormsAuthenticationCredentials.cs
- BindingValueChangedEventArgs.cs