Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataGridViewComboBoxEditingControl.cs
- Pair.cs
- BufferModesCollection.cs
- DefaultSettingsSection.cs
- MenuItem.cs
- OrderByLifter.cs
- RadioButtonList.cs
- LambdaCompiler.Generated.cs
- WebControlAdapter.cs
- Resources.Designer.cs
- GraphicsPathIterator.cs
- BitmapEditor.cs
- ChildChangedEventArgs.cs
- MulticastDelegate.cs
- NullableDoubleSumAggregationOperator.cs
- PartialCachingAttribute.cs
- ObjectParameterCollection.cs
- ObjectResult.cs
- WebPartZoneCollection.cs
- QueryCursorEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- FontStyles.cs
- _AcceptOverlappedAsyncResult.cs
- Glyph.cs
- ClientTarget.cs
- XmlSchemaElement.cs
- EntityCommandDefinition.cs
- XmlSchemaNotation.cs
- FileUtil.cs
- SafeRightsManagementHandle.cs
- AutomationPatternInfo.cs
- BuildProviderUtils.cs
- EntitySqlQueryBuilder.cs
- ClientBase.cs
- DefaultEventAttribute.cs
- Vector3DValueSerializer.cs
- XmlNodeChangedEventArgs.cs
- OptimizerPatterns.cs
- FrameworkTemplate.cs
- SvcMapFile.cs
- QuaternionRotation3D.cs
- HttpFileCollection.cs
- AmbientLight.cs
- StatusBarDesigner.cs
- LocalizabilityAttribute.cs
- ContextInformation.cs
- SafeLibraryHandle.cs
- OptimizedTemplateContentHelper.cs
- BasePropertyDescriptor.cs
- Vector3D.cs
- ZoomPercentageConverter.cs
- PropertyContainer.cs
- UrlMappingCollection.cs
- WebPartTransformerCollection.cs
- PerfService.cs
- ParentQuery.cs
- DefaultEvaluationContext.cs
- MsmqIntegrationChannelListener.cs
- ParameterBuilder.cs
- SettingsAttributeDictionary.cs
- Package.cs
- DataRow.cs
- TimeStampChecker.cs
- SchemaNamespaceManager.cs
- DllNotFoundException.cs
- Ray3DHitTestResult.cs
- XmlAnyElementAttributes.cs
- ColumnPropertiesGroup.cs
- WindowProviderWrapper.cs
- StylusPointDescription.cs
- Point4DConverter.cs
- CellIdBoolean.cs
- TableDesigner.cs
- PagerStyle.cs
- TextDecoration.cs
- XPathSelectionIterator.cs
- DefaultPropertiesToSend.cs
- LinqDataSourceView.cs
- ScrollBar.cs
- Registration.cs
- WindowsFormsHostAutomationPeer.cs
- DecimalFormatter.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- COM2TypeInfoProcessor.cs
- CalendarTable.cs
- SqlCacheDependencySection.cs
- SchemaCollectionCompiler.cs
- LogManagementAsyncResult.cs
- GeneratedContractType.cs
- RepeatInfo.cs
- PageAction.cs
- SessionPageStateSection.cs
- XmlReaderDelegator.cs
- FixedSOMImage.cs
- SerializationAttributes.cs
- ClrProviderManifest.cs
- SystemPens.cs
- JsonObjectDataContract.cs
- CodePrimitiveExpression.cs
- DuplicateWaitObjectException.cs