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
- Byte.cs
- SinglePageViewer.cs
- State.cs
- SimpleHandlerFactory.cs
- MemoryPressure.cs
- PropertyRef.cs
- MinimizableAttributeTypeConverter.cs
- BmpBitmapDecoder.cs
- ComponentChangingEvent.cs
- Query.cs
- XmlIlTypeHelper.cs
- ListDataBindEventArgs.cs
- Line.cs
- Base64Encoder.cs
- PreservationFileWriter.cs
- Point4D.cs
- ButtonRenderer.cs
- AsyncContentLoadedEventArgs.cs
- ConstraintCollection.cs
- XmlDataSource.cs
- MetaDataInfo.cs
- LayoutInformation.cs
- Timer.cs
- XmlStringTable.cs
- SecUtil.cs
- SchemaManager.cs
- PathFigureCollection.cs
- X509CertificateTrustedIssuerElement.cs
- SafeFileMappingHandle.cs
- TimeEnumHelper.cs
- ValidatorCollection.cs
- DefaultAssemblyResolver.cs
- ListSortDescription.cs
- CngAlgorithmGroup.cs
- CornerRadiusConverter.cs
- TagNameToTypeMapper.cs
- HyperLinkStyle.cs
- SqlDataSourceSelectingEventArgs.cs
- ObjectManager.cs
- ActiveXSite.cs
- EventSinkActivity.cs
- SqlCommandSet.cs
- DataGridBeginningEditEventArgs.cs
- SafeThreadHandle.cs
- PageCache.cs
- SafeNativeMethods.cs
- returneventsaver.cs
- ErrorsHelper.cs
- DetailsViewDeleteEventArgs.cs
- httpstaticobjectscollection.cs
- UpDownBase.cs
- SessionParameter.cs
- _StreamFramer.cs
- PermissionSetEnumerator.cs
- DataGridViewCellValidatingEventArgs.cs
- LinqDataSourceInsertEventArgs.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EmptyImpersonationContext.cs
- BamlRecordHelper.cs
- TextEditorCharacters.cs
- ToolStripRendererSwitcher.cs
- Ref.cs
- SHA512Managed.cs
- ParserStreamGeometryContext.cs
- ItemChangedEventArgs.cs
- ResponseBodyWriter.cs
- WebPartCloseVerb.cs
- EventRoute.cs
- TriggerBase.cs
- bidPrivateBase.cs
- Console.cs
- KeyEvent.cs
- LoginCancelEventArgs.cs
- ContainerCodeDomSerializer.cs
- WebPartEditorOkVerb.cs
- ShaderEffect.cs
- RequestCachePolicyConverter.cs
- Property.cs
- XmlSchemaDocumentation.cs
- VarInfo.cs
- TextPointer.cs
- MetadataUtilsSmi.cs
- WindowsListViewItemCheckBox.cs
- XmlUnspecifiedAttribute.cs
- RichTextBoxAutomationPeer.cs
- QuadraticBezierSegment.cs
- WpfSharedXamlSchemaContext.cs
- ItemsControlAutomationPeer.cs
- SqlTransaction.cs
- AdRotator.cs
- PromptStyle.cs
- DataReceivedEventArgs.cs
- DataBoundControl.cs
- Buffer.cs
- TemplateBindingExpressionConverter.cs
- UndoManager.cs
- TemplateBindingExtension.cs
- WebPartDeleteVerb.cs
- TagPrefixAttribute.cs
- MdiWindowListStrip.cs