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
- MasterPage.cs
- CapacityStreamGeometryContext.cs
- XmlSchemaGroup.cs
- ViewLoader.cs
- ModelTreeManager.cs
- XmlTypeAttribute.cs
- IndentedTextWriter.cs
- ConditionCollection.cs
- HealthMonitoringSectionHelper.cs
- TcpClientCredentialType.cs
- FontDriver.cs
- DataGridViewRowCollection.cs
- XPathExpr.cs
- Knowncolors.cs
- ProjectionQueryOptionExpression.cs
- ColumnTypeConverter.cs
- CompoundFileStorageReference.cs
- ExtentCqlBlock.cs
- VisualBrush.cs
- TextMetrics.cs
- PrincipalPermission.cs
- ReadOnlyTernaryTree.cs
- _StreamFramer.cs
- SHA1Cng.cs
- PropagatorResult.cs
- AttachedPropertiesService.cs
- Hex.cs
- XmlDictionary.cs
- CompoundFileIOPermission.cs
- CodeMemberMethod.cs
- XmlNodeChangedEventManager.cs
- basecomparevalidator.cs
- DrawingGroupDrawingContext.cs
- FindCompletedEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- WindowsListView.cs
- TypeForwardedToAttribute.cs
- EventMappingSettings.cs
- AsyncInvokeContext.cs
- PropVariant.cs
- COAUTHIDENTITY.cs
- DoubleAverageAggregationOperator.cs
- OleDbParameterCollection.cs
- FontStretches.cs
- BinaryQueryOperator.cs
- InstanceNormalEvent.cs
- DiscoveryDocumentReference.cs
- PageSettings.cs
- _SSPISessionCache.cs
- pingexception.cs
- GetWinFXPath.cs
- ConnectivityStatus.cs
- SegmentInfo.cs
- Native.cs
- TextBoxAutomationPeer.cs
- ClientSettingsProvider.cs
- HandleRef.cs
- _DomainName.cs
- LayoutSettings.cs
- JsonWriterDelegator.cs
- ParentUndoUnit.cs
- ConditionalWeakTable.cs
- ProgressBarRenderer.cs
- Native.cs
- MethodImplAttribute.cs
- StringAnimationUsingKeyFrames.cs
- httpstaticobjectscollection.cs
- ListViewUpdateEventArgs.cs
- XmlDownloadManager.cs
- DrawingAttributes.cs
- IsolatedStorageException.cs
- DrawingImage.cs
- CompiledRegexRunnerFactory.cs
- XmlSchemaAttributeGroup.cs
- BulletChrome.cs
- SiteMapSection.cs
- MsmqIntegrationBindingElement.cs
- PropertyKey.cs
- UriTemplateLiteralPathSegment.cs
- LineServicesCallbacks.cs
- ListBoxItemWrapperAutomationPeer.cs
- PagesSection.cs
- Bitmap.cs
- CommandDevice.cs
- MimeBasePart.cs
- SelectionProcessor.cs
- OdbcConnectionHandle.cs
- XmlAnyElementAttribute.cs
- PathTooLongException.cs
- CollectionViewGroup.cs
- Marshal.cs
- FileDialog.cs
- Compiler.cs
- VisualBasicValue.cs
- BindingContext.cs
- BitmapEffectrendercontext.cs
- DrawingCollection.cs
- SqlProviderManifest.cs
- XmlSignificantWhitespace.cs
- BitmapImage.cs