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
- StaticFileHandler.cs
- TdsParameterSetter.cs
- DllNotFoundException.cs
- UserControlAutomationPeer.cs
- SqlUtils.cs
- EtwTrace.cs
- FixedSOMImage.cs
- SizeKeyFrameCollection.cs
- StorageSetMapping.cs
- ViewValidator.cs
- CodePrimitiveExpression.cs
- SmiContextFactory.cs
- ColorContextHelper.cs
- WsatExtendedInformation.cs
- TagNameToTypeMapper.cs
- RelatedEnd.cs
- ScriptIgnoreAttribute.cs
- CharacterMetrics.cs
- LocalizationCodeDomSerializer.cs
- EFColumnProvider.cs
- XmlSignatureProperties.cs
- FileLogRecordHeader.cs
- StatusBarItem.cs
- Connector.xaml.cs
- DataGridViewRowPostPaintEventArgs.cs
- OptimalTextSource.cs
- regiisutil.cs
- TreeChangeInfo.cs
- DesignerProperties.cs
- DiffuseMaterial.cs
- LogLogRecord.cs
- StateDesigner.CommentLayoutGlyph.cs
- MachineSettingsSection.cs
- BorderGapMaskConverter.cs
- LogEntryHeaderDeserializer.cs
- COM2PropertyPageUITypeConverter.cs
- GenericUriParser.cs
- ByteAnimationUsingKeyFrames.cs
- WindowsListViewSubItem.cs
- PostBackOptions.cs
- WorkflowApplicationCompletedEventArgs.cs
- DataMemberAttribute.cs
- XamlSerializationHelper.cs
- StringReader.cs
- TrackingRecordPreFilter.cs
- _FtpControlStream.cs
- DataServiceRequest.cs
- AddressHeaderCollectionElement.cs
- DataGridHeaderBorder.cs
- Profiler.cs
- XmlCustomFormatter.cs
- RC2CryptoServiceProvider.cs
- EventLogRecord.cs
- CodeIterationStatement.cs
- OracleColumn.cs
- RangeExpression.cs
- ChangeBlockUndoRecord.cs
- WebPartActionVerb.cs
- BamlLocalizationDictionary.cs
- ToolboxItemCollection.cs
- ProjectionNode.cs
- LabelEditEvent.cs
- ProfileSettingsCollection.cs
- SafeNativeMethodsCLR.cs
- TimerEventSubscriptionCollection.cs
- CodeActivity.cs
- Renderer.cs
- QueryConverter.cs
- Repeater.cs
- NameTable.cs
- DiscoveryClientOutputChannel.cs
- PointKeyFrameCollection.cs
- DocumentGrid.cs
- SystemColors.cs
- ClickablePoint.cs
- FilteredDataSetHelper.cs
- WebCategoryAttribute.cs
- ImageBrush.cs
- GetIsBrowserClientRequest.cs
- GetLedgerRequest.cs
- UserControl.cs
- ConstraintStruct.cs
- WebPart.cs
- AssemblyInfo.cs
- RunInstallerAttribute.cs
- ArcSegment.cs
- SettingsPropertyCollection.cs
- CustomAssemblyResolver.cs
- GeneralTransformCollection.cs
- OleDbRowUpdatedEvent.cs
- TrustLevelCollection.cs
- ObjectStorage.cs
- storagemappingitemcollection.viewdictionary.cs
- RoleManagerSection.cs
- StaticTextPointer.cs
- StoreContentChangedEventArgs.cs
- XmlSerializerOperationBehavior.cs
- TextOutput.cs
- ColumnMapVisitor.cs
- SamlEvidence.cs