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
- StructuredTypeEmitter.cs
- AxHost.cs
- DeflateEmulationStream.cs
- AssertUtility.cs
- ConfigXmlText.cs
- InternalBufferOverflowException.cs
- HandlerElementCollection.cs
- DeviceSpecific.cs
- GenericUriParser.cs
- ScriptManager.cs
- BitmapFrameDecode.cs
- SafeLibraryHandle.cs
- TypeSystemProvider.cs
- EncryptedKey.cs
- GPStream.cs
- Translator.cs
- PolygonHotSpot.cs
- AutomationInteropProvider.cs
- SeekStoryboard.cs
- SecurityException.cs
- DocumentPageViewAutomationPeer.cs
- LinkButton.cs
- ControlParameter.cs
- NavigateEvent.cs
- RowToFieldTransformer.cs
- Label.cs
- XamlInterfaces.cs
- ColorAnimation.cs
- LogExtentCollection.cs
- BitStack.cs
- UnsafeMethods.cs
- ModelProperty.cs
- FileDialog.cs
- RealizationContext.cs
- GridViewEditEventArgs.cs
- EncryptedData.cs
- SqlEnums.cs
- TcpProcessProtocolHandler.cs
- FixedHyperLink.cs
- EnumMember.cs
- SQLSingleStorage.cs
- PasswordValidationException.cs
- Function.cs
- StorageBasedPackageProperties.cs
- DataSourceCache.cs
- SimpleLine.cs
- ToolboxItemImageConverter.cs
- ToolStripPanelCell.cs
- CompilerGeneratedAttribute.cs
- CompositeDataBoundControl.cs
- CodeDirectoryCompiler.cs
- WindowsScrollBarBits.cs
- ProviderSettings.cs
- LineSegment.cs
- DataGridRow.cs
- AssemblyUtil.cs
- SqlErrorCollection.cs
- TreeNodeConverter.cs
- SafePointer.cs
- ResourceSetExpression.cs
- TokenBasedSet.cs
- TraceSection.cs
- HttpContextServiceHost.cs
- FtpCachePolicyElement.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- XslAstAnalyzer.cs
- SectionVisual.cs
- SRGSCompiler.cs
- ArraySubsetEnumerator.cs
- SafeNativeMethods.cs
- ResourceLoader.cs
- RSAPKCS1KeyExchangeFormatter.cs
- NullableConverter.cs
- ExpressionLexer.cs
- RadioButton.cs
- Rect3DConverter.cs
- ComplexPropertyEntry.cs
- WindowsAuthenticationEventArgs.cs
- PropertyKey.cs
- cookie.cs
- DragEventArgs.cs
- CoreChannel.cs
- ProcessModuleCollection.cs
- SchemaDeclBase.cs
- AvTraceFormat.cs
- DbBuffer.cs
- SqlClientPermission.cs
- IncrementalCompileAnalyzer.cs
- ItemCollectionEditor.cs
- XmlDocumentSerializer.cs
- Control.cs
- BaseHashHelper.cs
- MatrixStack.cs
- mediapermission.cs
- MachineSettingsSection.cs
- TextDecorationCollectionConverter.cs
- Activity.cs
- EditorPartChrome.cs
- WindowClosedEventArgs.cs
- RequestDescription.cs