Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ChooseAction.cs
- Main.cs
- OdbcEnvironmentHandle.cs
- FieldNameLookup.cs
- EntityProviderFactory.cs
- PointCollectionValueSerializer.cs
- AssemblyNameProxy.cs
- OutputCacheProfile.cs
- EntityTypeBase.cs
- recordstate.cs
- Overlapped.cs
- TraceContext.cs
- CommunicationObjectFaultedException.cs
- MultipleCopiesCollection.cs
- HMACSHA512.cs
- WmpBitmapDecoder.cs
- ClientTarget.cs
- ApplyTemplatesAction.cs
- HTMLTextWriter.cs
- KeyboardEventArgs.cs
- DesignerProperties.cs
- AssociationTypeEmitter.cs
- RenderDataDrawingContext.cs
- HandleRef.cs
- DataGridViewRowPostPaintEventArgs.cs
- InkCanvasAutomationPeer.cs
- pingexception.cs
- ChannelSinkStacks.cs
- UserControlBuildProvider.cs
- PackageRelationshipCollection.cs
- AnnotationService.cs
- HttpProcessUtility.cs
- FontCacheUtil.cs
- FormsAuthentication.cs
- PersistenceException.cs
- XmlDataSourceView.cs
- ParameterModifier.cs
- ChannelDispatcher.cs
- ExceptionUtil.cs
- FixedPageStructure.cs
- DebuggerService.cs
- SpellerStatusTable.cs
- HttpServerVarsCollection.cs
- FileDialog.cs
- MasterPageCodeDomTreeGenerator.cs
- ElementProxy.cs
- XsltContext.cs
- SignedInfo.cs
- Compilation.cs
- AutoGeneratedFieldProperties.cs
- PermissionToken.cs
- DBSchemaRow.cs
- ObjectContext.cs
- DataTableNewRowEvent.cs
- HitTestParameters.cs
- TypeResolvingOptions.cs
- Metafile.cs
- DateTimeConverter.cs
- ScrollItemProviderWrapper.cs
- CookielessHelper.cs
- TransformPatternIdentifiers.cs
- regiisutil.cs
- Events.cs
- DbParameterHelper.cs
- SQLResource.cs
- DefaultAsyncDataDispatcher.cs
- EntitySetDataBindingList.cs
- CompilerInfo.cs
- XPathBuilder.cs
- SyntaxCheck.cs
- LinkClickEvent.cs
- ToolStripItemDataObject.cs
- TouchesCapturedWithinProperty.cs
- IISMapPath.cs
- configsystem.cs
- NullableDoubleSumAggregationOperator.cs
- NetWebProxyFinder.cs
- RijndaelManaged.cs
- ConfigurationManagerInternal.cs
- ShaderEffect.cs
- Attributes.cs
- QuadraticBezierSegment.cs
- ThicknessKeyFrameCollection.cs
- DataPointer.cs
- LicenseException.cs
- PropertyChangeTracker.cs
- RegexTypeEditor.cs
- DataTable.cs
- DecimalStorage.cs
- MasterPageParser.cs
- OdbcInfoMessageEvent.cs
- TrustSection.cs
- MultiBinding.cs
- XamlPoint3DCollectionSerializer.cs
- AssemblyBuilder.cs
- ContravarianceAdapter.cs
- SqlHelper.cs
- Light.cs
- TimeSpanValidatorAttribute.cs
- TextElementEnumerator.cs