Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridSortCommandEventArgs.cs
- PageCache.cs
- ProfileModule.cs
- SoapCodeExporter.cs
- HwndSubclass.cs
- CultureTable.cs
- FontStyleConverter.cs
- ViewBox.cs
- DataObjectFieldAttribute.cs
- KeyToListMap.cs
- CollectionChangeEventArgs.cs
- BitmapEffectDrawingContent.cs
- UnionExpr.cs
- ToolBarButtonClickEvent.cs
- CheckBoxList.cs
- XPathNodeHelper.cs
- HMACSHA512.cs
- BindingCompleteEventArgs.cs
- DisableDpiAwarenessAttribute.cs
- MimeParameterWriter.cs
- CallbackHandler.cs
- Rect3D.cs
- RegisteredArrayDeclaration.cs
- MdiWindowListItemConverter.cs
- AssemblyName.cs
- UIntPtr.cs
- Viewport2DVisual3D.cs
- RTLAwareMessageBox.cs
- Registry.cs
- DataTableReaderListener.cs
- PriorityItem.cs
- XmlEncodedRawTextWriter.cs
- Logging.cs
- InternalConfigSettingsFactory.cs
- InternalConfigSettingsFactory.cs
- __Error.cs
- LookupBindingPropertiesAttribute.cs
- JsonObjectDataContract.cs
- RegexCompilationInfo.cs
- XmlHelper.cs
- SignatureDescription.cs
- BlobPersonalizationState.cs
- FrameDimension.cs
- DefaultAsyncDataDispatcher.cs
- GroupItem.cs
- SpeechEvent.cs
- GridViewRow.cs
- DBSchemaTable.cs
- AxDesigner.cs
- WindowAutomationPeer.cs
- KoreanLunisolarCalendar.cs
- ProfilePropertyMetadata.cs
- RawStylusInputReport.cs
- SkipStoryboardToFill.cs
- COM2ExtendedTypeConverter.cs
- OleDbInfoMessageEvent.cs
- NotificationContext.cs
- WsdlServiceChannelBuilder.cs
- LogFlushAsyncResult.cs
- SourceFileBuildProvider.cs
- JoinTreeNode.cs
- LogEntryHeaderSerializer.cs
- ListDictionaryInternal.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ValueExpressions.cs
- PictureBox.cs
- CryptoApi.cs
- BuildProvider.cs
- ByteRangeDownloader.cs
- Bitmap.cs
- Mouse.cs
- CookieHandler.cs
- SortFieldComparer.cs
- CreateUserErrorEventArgs.cs
- IFormattable.cs
- OutputCache.cs
- UnknownBitmapEncoder.cs
- XmlEntityReference.cs
- TrackingDataItem.cs
- PolicyException.cs
- WebReferencesBuildProvider.cs
- AspNetRouteServiceHttpHandler.cs
- DependencyPropertyKey.cs
- XPathAncestorIterator.cs
- SiteMap.cs
- RectangleF.cs
- XamlReader.cs
- CorrelationRequestContext.cs
- ColorBuilder.cs
- NameValueFileSectionHandler.cs
- TypeForwardedFromAttribute.cs
- MethodAccessException.cs
- CategoriesDocument.cs
- SerializationInfo.cs
- Int32Rect.cs
- ClaimTypeRequirement.cs
- Deserializer.cs
- WeakReferenceList.cs
- UIElement.cs
- SafeNativeMethods.cs