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
- EntityParameter.cs
- BitmapScalingModeValidation.cs
- ControlCollection.cs
- SoapServerMessage.cs
- ControlAdapter.cs
- FixedHighlight.cs
- NullableDoubleAverageAggregationOperator.cs
- ISAPIWorkerRequest.cs
- Int16Converter.cs
- FormViewUpdateEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- PointIndependentAnimationStorage.cs
- DecimalAnimationBase.cs
- TextBox.cs
- RoleGroup.cs
- ContextInformation.cs
- Utils.cs
- HtmlShimManager.cs
- SendSecurityHeaderElementContainer.cs
- ConsoleTraceListener.cs
- EntityDataSourceChangingEventArgs.cs
- GenericQueueSurrogate.cs
- DirtyTextRange.cs
- CheckBox.cs
- IPGlobalProperties.cs
- PagePropertiesChangingEventArgs.cs
- isolationinterop.cs
- SerializableTypeCodeDomSerializer.cs
- TableLayoutSettings.cs
- RecordsAffectedEventArgs.cs
- SqlCacheDependencyDatabase.cs
- documentsequencetextview.cs
- TextTreeRootNode.cs
- TextClipboardData.cs
- GridView.cs
- Int16AnimationBase.cs
- RewritingSimplifier.cs
- BuildProviderInstallComponent.cs
- ViewLoader.cs
- Timer.cs
- QuaternionKeyFrameCollection.cs
- FilterElement.cs
- GeometryHitTestParameters.cs
- Package.cs
- CodeCatchClauseCollection.cs
- WorkflowMarkupElementEventArgs.cs
- OdbcInfoMessageEvent.cs
- AuthenticodeSignatureInformation.cs
- AnnotationService.cs
- FactoryGenerator.cs
- ApplicationDirectoryMembershipCondition.cs
- Adorner.cs
- FilteredXmlReader.cs
- EnumValidator.cs
- QilLoop.cs
- CustomLineCap.cs
- Latin1Encoding.cs
- ResourcesBuildProvider.cs
- ZoneMembershipCondition.cs
- Typography.cs
- DataObjectCopyingEventArgs.cs
- CorrelationKeyCalculator.cs
- XamlParser.cs
- WindowsScrollBar.cs
- DataGridTextBoxColumn.cs
- RelatedCurrencyManager.cs
- ColumnClickEvent.cs
- SizeKeyFrameCollection.cs
- SafeUserTokenHandle.cs
- StoreAnnotationsMap.cs
- NativeMethods.cs
- ImageConverter.cs
- CompareValidator.cs
- X509Certificate2Collection.cs
- HwndAppCommandInputProvider.cs
- HtmlSelect.cs
- AstNode.cs
- TransactedBatchingBehavior.cs
- SqlCacheDependency.cs
- XmlNamespaceMapping.cs
- AssemblyBuilderData.cs
- TypeLibConverter.cs
- Message.cs
- DynamicDocumentPaginator.cs
- ScriptDescriptor.cs
- DiagnosticTrace.cs
- NameNode.cs
- UInt16Storage.cs
- ComponentChangingEvent.cs
- CellIdBoolean.cs
- LinqDataSource.cs
- PolyQuadraticBezierSegment.cs
- ObjectDataSourceEventArgs.cs
- MsmqDecodeHelper.cs
- MeasurementDCInfo.cs
- RequestCacheValidator.cs
- InternalBase.cs
- ListBoxItem.cs
- RectAnimationBase.cs
- DataReceivedEventArgs.cs