Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MsmqSecureHashAlgorithm.cs
- DataGridViewDataErrorEventArgs.cs
- SignatureHelper.cs
- Event.cs
- DataGridViewColumn.cs
- MouseGestureValueSerializer.cs
- DefaultShape.cs
- DocumentViewerBaseAutomationPeer.cs
- SHA1.cs
- DependencyPropertyKey.cs
- XamlPoint3DCollectionSerializer.cs
- COMException.cs
- SignatureGenerator.cs
- DynamicResourceExtensionConverter.cs
- Helper.cs
- QilSortKey.cs
- TrimSurroundingWhitespaceAttribute.cs
- ObjectSet.cs
- PropertyBuilder.cs
- ColumnMapCopier.cs
- TextBounds.cs
- ListBox.cs
- QueryLifecycle.cs
- ExceptionUtil.cs
- SwitchLevelAttribute.cs
- BufferedReceiveManager.cs
- StorageInfo.cs
- OrderPreservingPipeliningMergeHelper.cs
- GenericPrincipal.cs
- JsonStringDataContract.cs
- AccessedThroughPropertyAttribute.cs
- BamlWriter.cs
- AssociationTypeEmitter.cs
- PropVariant.cs
- BatchStream.cs
- SecurityRuntime.cs
- TransactedReceiveData.cs
- ScrollEventArgs.cs
- ClaimTypeRequirement.cs
- ToolStripDropDownDesigner.cs
- Operators.cs
- MetadataItemEmitter.cs
- UnicodeEncoding.cs
- VScrollProperties.cs
- MaterializeFromAtom.cs
- DesignBindingConverter.cs
- SrgsNameValueTag.cs
- SubpageParagraph.cs
- StrokeNodeData.cs
- ErrorTableItemStyle.cs
- StreamResourceInfo.cs
- RegexCode.cs
- IncrementalCompileAnalyzer.cs
- FileRecordSequence.cs
- StreamWriter.cs
- RegexMatch.cs
- _NestedSingleAsyncResult.cs
- DbConnectionPoolGroupProviderInfo.cs
- GroupStyle.cs
- basemetadatamappingvisitor.cs
- ProcessMonitor.cs
- TopClause.cs
- GAC.cs
- SchemaDeclBase.cs
- SqlLiftWhereClauses.cs
- TcpStreams.cs
- XamlVector3DCollectionSerializer.cs
- File.cs
- TokenBasedSetEnumerator.cs
- HostVisual.cs
- Win32.cs
- BookmarkUndoUnit.cs
- FlatButtonAppearance.cs
- TreeNodeMouseHoverEvent.cs
- AccessibleObject.cs
- BCryptSafeHandles.cs
- ParagraphResult.cs
- DocumentEventArgs.cs
- MappingItemCollection.cs
- ResourcesBuildProvider.cs
- ZoneButton.cs
- VersionPair.cs
- EventLogTraceListener.cs
- XmlTextAttribute.cs
- validation.cs
- RNGCryptoServiceProvider.cs
- SecurityContextSecurityTokenParameters.cs
- ContentDesigner.cs
- SoapCodeExporter.cs
- AssemblyAttributes.cs
- SchemaCollectionPreprocessor.cs
- TableLayoutCellPaintEventArgs.cs
- PublisherMembershipCondition.cs
- GlobalizationAssembly.cs
- ResourceExpressionEditor.cs
- ClientScriptManager.cs
- ToolboxCategory.cs
- SqlCommandBuilder.cs
- VirtualStackFrame.cs
- EntityDesignerBuildProvider.cs