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
- SetIterators.cs
- IfAction.cs
- ColorMap.cs
- FontStyleConverter.cs
- RadioButtonList.cs
- QuerySettings.cs
- Fault.cs
- Function.cs
- OrderedHashRepartitionEnumerator.cs
- UIElementHelper.cs
- CopyNodeSetAction.cs
- FileVersion.cs
- TextTreeDeleteContentUndoUnit.cs
- DataMisalignedException.cs
- RowSpanVector.cs
- Rules.cs
- QuotedPairReader.cs
- ResourceManager.cs
- UIPermission.cs
- InstallerTypeAttribute.cs
- WizardStepBase.cs
- DataGridViewCellCollection.cs
- TextServicesContext.cs
- StylusButtonCollection.cs
- PageEventArgs.cs
- UICuesEvent.cs
- Label.cs
- KeyProperty.cs
- MaskedTextProvider.cs
- Misc.cs
- HideDisabledControlAdapter.cs
- RijndaelCryptoServiceProvider.cs
- DispatcherFrame.cs
- StrokeNodeData.cs
- PipeStream.cs
- StateBag.cs
- WindowsPen.cs
- WorkflowExecutor.cs
- HotSpotCollection.cs
- RightsManagementInformation.cs
- QueryOptionExpression.cs
- CreateUserWizardStep.cs
- CuspData.cs
- CounterCreationDataCollection.cs
- AnnotationObservableCollection.cs
- WindowInteropHelper.cs
- BitmapVisualManager.cs
- NullableConverter.cs
- AmbientLight.cs
- JulianCalendar.cs
- XmlSchemaImport.cs
- HttpCookie.cs
- DoubleLinkList.cs
- SHA256Managed.cs
- KeyGestureConverter.cs
- DrawingAttributesDefaultValueFactory.cs
- BindingMAnagerBase.cs
- CompilerHelpers.cs
- DiagnosticsConfiguration.cs
- SatelliteContractVersionAttribute.cs
- DataError.cs
- CompositionTarget.cs
- BeginStoryboard.cs
- EventHandlerList.cs
- XmlSchemaSimpleTypeList.cs
- ResetableIterator.cs
- AffineTransform3D.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- HttpMethodAttribute.cs
- InstanceHandle.cs
- PieceDirectory.cs
- Propagator.Evaluator.cs
- TextInfo.cs
- ConditionalDesigner.cs
- COM2EnumConverter.cs
- SamlAssertion.cs
- InputProcessorProfilesLoader.cs
- DataControlImageButton.cs
- ImpersonationContext.cs
- HandleCollector.cs
- XmlSchemaObject.cs
- GradientStopCollection.cs
- ConnectionProviderAttribute.cs
- HtmlTextBoxAdapter.cs
- MetadataItem_Static.cs
- Rotation3D.cs
- TiffBitmapDecoder.cs
- TypedElement.cs
- ErrorWebPart.cs
- InvokeBinder.cs
- DocumentPageHost.cs
- Tile.cs
- XmlLanguageConverter.cs
- DescendantBaseQuery.cs
- SerializationAttributes.cs
- AppliedDeviceFiltersDialog.cs
- MD5CryptoServiceProvider.cs
- SqlHelper.cs
- DiagnosticsConfiguration.cs
- MenuItem.cs