Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Security / SecurityState.cs / 1 / SecurityState.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==++== using System; using System.Security; using System.Security.Permissions; namespace System.Security { [PermissionSet(SecurityAction.LinkDemand, Unrestricted = true)] [PermissionSet(SecurityAction.InheritanceDemand, Unrestricted = true)] public abstract class SecurityState { protected SecurityState() { } public bool IsStateAvailable() { AppDomainManager domainManager = AppDomainManager.CurrentAppDomainManager; return domainManager != null ? domainManager.CheckSecuritySettings(this) : false; } // Override this function and throw the appropriate exception if the security state // should not be available in the current context. public abstract void EnsureState(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==++== using System; using System.Security; using System.Security.Permissions; namespace System.Security { [PermissionSet(SecurityAction.LinkDemand, Unrestricted = true)] [PermissionSet(SecurityAction.InheritanceDemand, Unrestricted = true)] public abstract class SecurityState { protected SecurityState() { } public bool IsStateAvailable() { AppDomainManager domainManager = AppDomainManager.CurrentAppDomainManager; return domainManager != null ? domainManager.CheckSecuritySettings(this) : false; } // Override this function and throw the appropriate exception if the security state // should not be available in the current context. public abstract void EnsureState(); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoWorkEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- SQLInt16Storage.cs
- Dispatcher.cs
- IndentTextWriter.cs
- FixedDocument.cs
- ProcessThreadCollection.cs
- XmlCollation.cs
- BuildProvider.cs
- MultipleViewProviderWrapper.cs
- EventProviderBase.cs
- DocComment.cs
- Int32CAMarshaler.cs
- TreeViewImageIndexConverter.cs
- RequestCache.cs
- Rectangle.cs
- PerformanceCounterManager.cs
- Inline.cs
- ApplicationException.cs
- DataGridViewCell.cs
- StringCollectionMarkupSerializer.cs
- WebPartDisplayModeCancelEventArgs.cs
- ReferentialConstraint.cs
- EventPropertyMap.cs
- VisualCollection.cs
- SendSecurityHeaderElement.cs
- EncoderFallback.cs
- SqlDuplicator.cs
- FrameworkContentElement.cs
- WebPartDescriptionCollection.cs
- ContainerUIElement3D.cs
- Size3D.cs
- Throw.cs
- ProvidersHelper.cs
- CryptoHelper.cs
- DialogWindow.cs
- AppDomainCompilerProxy.cs
- DataExpression.cs
- TextBox.cs
- ContractTypeNameCollection.cs
- ToolboxItemFilterAttribute.cs
- PeerObject.cs
- BaseCollection.cs
- ListItemViewControl.cs
- SetIterators.cs
- ConfigurationValidatorAttribute.cs
- RoutedEventArgs.cs
- KeyMatchBuilder.cs
- TextDataBindingHandler.cs
- SequenceFullException.cs
- DataTableMappingCollection.cs
- IncrementalHitTester.cs
- SAPICategories.cs
- EarlyBoundInfo.cs
- SafeRightsManagementHandle.cs
- SoapEnumAttribute.cs
- HandlerFactoryCache.cs
- MimeReflector.cs
- HttpConfigurationSystem.cs
- TickBar.cs
- XmlAnyElementAttributes.cs
- ChannelManagerBase.cs
- FileNotFoundException.cs
- ManagedFilter.cs
- MDIWindowDialog.cs
- MethodCallConverter.cs
- EntityClassGenerator.cs
- UIElementPropertyUndoUnit.cs
- TypeResolver.cs
- ObjectTag.cs
- TraceListeners.cs
- cookieexception.cs
- NumberFormatInfo.cs
- SynchronousReceiveBehavior.cs
- ReferencedAssemblyResolver.cs
- Transform.cs
- TextChange.cs
- LineBreak.cs
- DocumentViewerHelper.cs
- Triplet.cs
- TextDecorations.cs
- TransformerTypeCollection.cs
- ExternalFile.cs
- RuleSettings.cs
- DataControlField.cs
- XmlSchemaIdentityConstraint.cs
- NoResizeSelectionBorderGlyph.cs
- CategoryAttribute.cs
- EpmCustomContentSerializer.cs
- Label.cs
- TypeDescriptor.cs
- ClosureBinding.cs
- DataGridViewLinkCell.cs
- ChangeDirector.cs
- RTTrackingProfile.cs
- NamedPermissionSet.cs
- WindowsScroll.cs
- DiscoveryReferences.cs
- SerializationStore.cs
- GlyphingCache.cs