Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataControlCommands.cs
- ConfigurationStrings.cs
- ContentPosition.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ConstraintCollection.cs
- SudsParser.cs
- DataGridViewCellCancelEventArgs.cs
- ShaderEffect.cs
- CellParaClient.cs
- ValidatorCompatibilityHelper.cs
- CoTaskMemHandle.cs
- CapabilitiesUse.cs
- BeginEvent.cs
- PathGeometry.cs
- LocalizableAttribute.cs
- ErrorFormatterPage.cs
- _UncName.cs
- TransactionManager.cs
- HtmlTitle.cs
- ControlCollection.cs
- XmlSchemaSimpleTypeList.cs
- CorrelationToken.cs
- BoundField.cs
- HttpResponse.cs
- InfoCardBinaryReader.cs
- Int16Animation.cs
- Location.cs
- WebPartsPersonalizationAuthorization.cs
- OracleMonthSpan.cs
- CompatibleComparer.cs
- ServerType.cs
- BufferedGraphicsManager.cs
- ProfileSettings.cs
- LiteralDesigner.cs
- CapabilitiesPattern.cs
- Graphics.cs
- SrgsRule.cs
- HttpCacheVary.cs
- ViewEventArgs.cs
- WebResponse.cs
- SuppressIldasmAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- DebugViewWriter.cs
- Crc32.cs
- GeneralTransform2DTo3DTo2D.cs
- UnknownWrapper.cs
- XsdDuration.cs
- InternalPermissions.cs
- EntityDataSourceSelectedEventArgs.cs
- EventDescriptorCollection.cs
- MD5Cng.cs
- RegexCode.cs
- ReadContentAsBinaryHelper.cs
- ToolboxItemWrapper.cs
- FileChangesMonitor.cs
- SecurityContext.cs
- DefaultAuthorizationContext.cs
- ResourceDictionaryCollection.cs
- GregorianCalendarHelper.cs
- ContainerAction.cs
- SamlDoNotCacheCondition.cs
- embossbitmapeffect.cs
- PrintingPermissionAttribute.cs
- WebPartChrome.cs
- ScriptReferenceEventArgs.cs
- DataGridViewButtonCell.cs
- WebPartHeaderCloseVerb.cs
- Point3DIndependentAnimationStorage.cs
- InertiaRotationBehavior.cs
- CodeCompileUnit.cs
- SafeCryptContextHandle.cs
- XmlTextEncoder.cs
- RepeaterCommandEventArgs.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- InternalMappingException.cs
- DelimitedListTraceListener.cs
- SendKeys.cs
- ContourSegment.cs
- PaperSize.cs
- CSharpCodeProvider.cs
- SoapMessage.cs
- relpropertyhelper.cs
- ToolStripRenderEventArgs.cs
- GridViewColumnCollection.cs
- ErrorEventArgs.cs
- VerificationAttribute.cs
- DictionarySectionHandler.cs
- CompilerInfo.cs
- DbConnectionOptions.cs
- DictionarySectionHandler.cs
- CorrelationRequestContext.cs
- XpsS0ValidatingLoader.cs
- EventLogEntry.cs
- DrawingGroupDrawingContext.cs
- Run.cs
- SendingRequestEventArgs.cs
- ConfigurationValidatorAttribute.cs
- ObjectDataSourceView.cs
- ResourceDefaultValueAttribute.cs
- GlyphTypeface.cs