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
- DesignerLoader.cs
- PhysicalFontFamily.cs
- Decoder.cs
- SHA1Managed.cs
- AdRotator.cs
- Transform.cs
- XslTransform.cs
- documentation.cs
- StringArrayEditor.cs
- coordinatorfactory.cs
- IItemProperties.cs
- RolePrincipal.cs
- SharedStatics.cs
- DataKey.cs
- SQLDateTime.cs
- DifferencingCollection.cs
- ThreadExceptionDialog.cs
- OleCmdHelper.cs
- _ConnectStream.cs
- MbpInfo.cs
- ActivationArguments.cs
- AuthenticationManager.cs
- SQLInt32Storage.cs
- log.cs
- ItemCheckedEvent.cs
- StrokeDescriptor.cs
- DelegatedStream.cs
- VerticalAlignConverter.cs
- DebugView.cs
- PrintDialog.cs
- LostFocusEventManager.cs
- DynamicPropertyHolder.cs
- WebDisplayNameAttribute.cs
- ContextQuery.cs
- InvalidFilterCriteriaException.cs
- ResourceDictionaryCollection.cs
- CodeLabeledStatement.cs
- MatchingStyle.cs
- XmlSerializerNamespaces.cs
- BindingOperations.cs
- RequestStatusBarUpdateEventArgs.cs
- backend.cs
- HttpCookie.cs
- PipelineComponent.cs
- RIPEMD160Managed.cs
- ListItemParagraph.cs
- TypeListConverter.cs
- OleDbReferenceCollection.cs
- StrongNameUtility.cs
- ThreadSafeList.cs
- CodeTypeConstructor.cs
- TabletDeviceInfo.cs
- UniformGrid.cs
- GroupByQueryOperator.cs
- IndentedTextWriter.cs
- CachedBitmap.cs
- UnionCqlBlock.cs
- IDataContractSurrogate.cs
- ZipArchive.cs
- PermissionListSet.cs
- SqlMethodCallConverter.cs
- ControlFilterExpression.cs
- SamlConditions.cs
- ScrollEventArgs.cs
- Matrix3DValueSerializer.cs
- TypeSystemHelpers.cs
- ControlType.cs
- ToolStripScrollButton.cs
- BlockCollection.cs
- GeometryCollection.cs
- ResXResourceWriter.cs
- ShaderEffect.cs
- Int64.cs
- XmlSchemaRedefine.cs
- QuaternionRotation3D.cs
- QilVisitor.cs
- ComponentCodeDomSerializer.cs
- TreeChangeInfo.cs
- ViewStateModeByIdAttribute.cs
- TransactionFilter.cs
- CodeDOMProvider.cs
- GenericIdentity.cs
- ValidationHelper.cs
- SystemIPAddressInformation.cs
- IndicCharClassifier.cs
- TableProviderWrapper.cs
- ConfigXmlElement.cs
- OutputScopeManager.cs
- StaticTextPointer.cs
- XmlNodeChangedEventArgs.cs
- FixedSOMTable.cs
- InvalidOleVariantTypeException.cs
- StyleHelper.cs
- MatrixTransform3D.cs
- String.cs
- JsonEncodingStreamWrapper.cs
- ObjectStateEntryDbDataRecord.cs
- ClientData.cs
- TextComposition.cs
- TransportChannelListener.cs