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
- FontInfo.cs
- Floater.cs
- Calendar.cs
- XmlSequenceWriter.cs
- UnsafeNativeMethods.cs
- XmlSchemaAny.cs
- ElementHostAutomationPeer.cs
- CallbackValidator.cs
- VisualStyleTypesAndProperties.cs
- SettingsProviderCollection.cs
- BidOverLoads.cs
- ModulesEntry.cs
- HttpConfigurationContext.cs
- _WinHttpWebProxyDataBuilder.cs
- ErrorEventArgs.cs
- WebPartRestoreVerb.cs
- ItemCheckEvent.cs
- CodeNamespaceCollection.cs
- WebPartCloseVerb.cs
- FamilyMap.cs
- SplayTreeNode.cs
- SignedXmlDebugLog.cs
- DecoratedNameAttribute.cs
- MSG.cs
- FontDifferentiator.cs
- UnSafeCharBuffer.cs
- SchemaNames.cs
- GregorianCalendar.cs
- EmptyElement.cs
- ErasingStroke.cs
- CaseStatementSlot.cs
- RSAOAEPKeyExchangeFormatter.cs
- DateBoldEvent.cs
- RawStylusSystemGestureInputReport.cs
- InsufficientMemoryException.cs
- Repeater.cs
- DataGridViewRowCancelEventArgs.cs
- Code.cs
- NamedObject.cs
- ApplicationServicesHostFactory.cs
- BitmapEffectInputConnector.cs
- DocumentOrderComparer.cs
- DefaultTextStoreTextComposition.cs
- UrlAuthFailureHandler.cs
- RetrieveVirtualItemEventArgs.cs
- PanelStyle.cs
- ListItemCollection.cs
- DataFormat.cs
- DataException.cs
- Page.cs
- OdbcDataReader.cs
- PriorityQueue.cs
- TreeNodeMouseHoverEvent.cs
- PropertyGroupDescription.cs
- GeometryModel3D.cs
- NumericUpDownAcceleration.cs
- Int32Converter.cs
- Part.cs
- StatusBarItemAutomationPeer.cs
- UriTemplateHelpers.cs
- SqlDataSourceCommandParser.cs
- WebPartMenuStyle.cs
- Config.cs
- TCPClient.cs
- UrlPath.cs
- BooleanFunctions.cs
- CompositeScriptReferenceEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- ObfuscateAssemblyAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DoubleAnimation.cs
- EventLogStatus.cs
- TransformGroup.cs
- FunctionQuery.cs
- XmlJsonWriter.cs
- XmlCustomFormatter.cs
- _CommandStream.cs
- SqlFormatter.cs
- RadioButton.cs
- XmlnsCache.cs
- SoapObjectInfo.cs
- _StreamFramer.cs
- ManagedFilter.cs
- OleDbCommandBuilder.cs
- NonSerializedAttribute.cs
- CompilationLock.cs
- RegexParser.cs
- RelationshipManager.cs
- ResourceWriter.cs
- ToolStripGripRenderEventArgs.cs
- ExceptionValidationRule.cs
- ResourceDescriptionAttribute.cs
- Registry.cs
- HttpEncoderUtility.cs
- DataStreamFromComStream.cs
- AsymmetricAlgorithm.cs
- TraceLevelHelper.cs
- WebResourceUtil.cs
- XmlDataProvider.cs
- DispatcherSynchronizationContext.cs