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
- SimpleExpression.cs
- Triangle.cs
- XmlSchemaExporter.cs
- TimeManager.cs
- ConfigurationLocation.cs
- ScriptControl.cs
- Activator.cs
- XmlSchemaAppInfo.cs
- MemoryRecordBuffer.cs
- DetailsViewUpdatedEventArgs.cs
- EventLogLink.cs
- AxImporter.cs
- RtfControls.cs
- ListViewCommandEventArgs.cs
- MbpInfo.cs
- CodeDirectiveCollection.cs
- BitHelper.cs
- BitStream.cs
- PopupEventArgs.cs
- PolyLineSegment.cs
- EntityDataSourceSelectedEventArgs.cs
- OdbcInfoMessageEvent.cs
- ArgumentFixer.cs
- DetailsViewPagerRow.cs
- ComponentResourceManager.cs
- DecimalAverageAggregationOperator.cs
- DbgCompiler.cs
- FixedPageStructure.cs
- EncodingStreamWrapper.cs
- Interlocked.cs
- NativeMethods.cs
- RequestQueue.cs
- TrackingProvider.cs
- XPathBinder.cs
- DesignerSerializerAttribute.cs
- ControlBindingsCollection.cs
- objectresult_tresulttype.cs
- SqlDataSourceQueryEditorForm.cs
- DataGridView.cs
- TableColumn.cs
- SchemaTableOptionalColumn.cs
- GeneralTransformCollection.cs
- Msec.cs
- HelpOperationInvoker.cs
- CryptoConfig.cs
- LinkTarget.cs
- DbDataAdapter.cs
- FragmentQueryKB.cs
- IISMapPath.cs
- SchemaTableOptionalColumn.cs
- Random.cs
- RuntimeTransactionHandle.cs
- ExceptionHelpers.cs
- SQLBinaryStorage.cs
- EmbeddedMailObject.cs
- WindowsRebar.cs
- EntityType.cs
- WebPartVerbCollection.cs
- DeclarationUpdate.cs
- GridViewCancelEditEventArgs.cs
- ProxyWebPart.cs
- Touch.cs
- AlphaSortedEnumConverter.cs
- WebPartConnectionsCancelEventArgs.cs
- List.cs
- TypeConverterHelper.cs
- If.cs
- BulletedListEventArgs.cs
- ControlAdapter.cs
- HybridDictionary.cs
- BindStream.cs
- UnsafeNativeMethodsTablet.cs
- HandlerBase.cs
- InvalidOperationException.cs
- OnOperation.cs
- XPathScanner.cs
- OleDbPermission.cs
- LocalServiceSecuritySettings.cs
- WindowsFont.cs
- WorkflowInstanceAbortedRecord.cs
- Mappings.cs
- OdbcInfoMessageEvent.cs
- Literal.cs
- Dictionary.cs
- WinEventWrap.cs
- FaultReason.cs
- Grant.cs
- Grammar.cs
- Dictionary.cs
- HttpServerUtilityBase.cs
- SpeakInfo.cs
- LinkButton.cs
- DataSourceHelper.cs
- ToolStripContainer.cs
- WorkflowOperationBehavior.cs
- XmlCharType.cs
- XmlWrappingReader.cs
- WebPartTransformer.cs
- wmiprovider.cs
- EntityDataSourceContextCreatingEventArgs.cs