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
- HandledMouseEvent.cs
- SqlDependencyUtils.cs
- MultiBinding.cs
- LongTypeConverter.cs
- HostingEnvironmentWrapper.cs
- ModelItem.cs
- CodeThrowExceptionStatement.cs
- LZCodec.cs
- HwndMouseInputProvider.cs
- BoolExpressionVisitors.cs
- ExpressionBuilder.cs
- BinaryReader.cs
- While.cs
- UndoEngine.cs
- ActiveXSite.cs
- SamlAction.cs
- ConfigurationSettings.cs
- BitVector32.cs
- TextMetrics.cs
- DataConnectionHelper.cs
- COM2PropertyDescriptor.cs
- DbProviderManifest.cs
- UserInitiatedNavigationPermission.cs
- DataRowCollection.cs
- IndentedWriter.cs
- UIElement.cs
- GenerateTemporaryTargetAssembly.cs
- AddInPipelineAttributes.cs
- PrintDialog.cs
- HashSetDebugView.cs
- ThreadAttributes.cs
- ExpressionWriter.cs
- RoleGroup.cs
- FocusWithinProperty.cs
- MobileRedirect.cs
- StaticSiteMapProvider.cs
- XmlSchemaAnnotation.cs
- SqlCacheDependencyDatabase.cs
- SupportingTokenListenerFactory.cs
- RemotingException.cs
- StylusTip.cs
- RadioButtonRenderer.cs
- MsmqElementBase.cs
- DrawingState.cs
- CodeVariableReferenceExpression.cs
- ServiceEndpoint.cs
- OrderByQueryOptionExpression.cs
- SerializationInfo.cs
- StyleXamlParser.cs
- ListDictionaryInternal.cs
- SafeBitVector32.cs
- DataGridViewCellCollection.cs
- WindowsListViewGroupSubsetLink.cs
- IgnorePropertiesAttribute.cs
- TraceHandler.cs
- EntityType.cs
- MatrixAnimationBase.cs
- DateTimeValueSerializerContext.cs
- ConfigurationSectionGroup.cs
- MimeMapping.cs
- SiteMapDataSource.cs
- OlePropertyStructs.cs
- DBSchemaRow.cs
- IsolatedStorageFilePermission.cs
- ParamArrayAttribute.cs
- ToolStripItemCollection.cs
- HashCryptoHandle.cs
- safelinkcollection.cs
- HScrollBar.cs
- FormViewDeletedEventArgs.cs
- InternalsVisibleToAttribute.cs
- LifetimeServices.cs
- ColumnResult.cs
- Oid.cs
- OleDbConnection.cs
- DriveInfo.cs
- CodeMemberProperty.cs
- SubMenuStyleCollection.cs
- MsmqChannelFactory.cs
- Behavior.cs
- ElementAtQueryOperator.cs
- OleDbInfoMessageEvent.cs
- SafePEFileHandle.cs
- Configuration.cs
- ListBox.cs
- KnownColorTable.cs
- _DisconnectOverlappedAsyncResult.cs
- WithParamAction.cs
- DataGridState.cs
- HtmlWindowCollection.cs
- UnmanagedMemoryStream.cs
- ToolStripRenderer.cs
- AdvancedBindingEditor.cs
- PenThread.cs
- CustomPopupPlacement.cs
- X509CertificateTokenFactoryCredential.cs
- TabRenderer.cs
- GenericWebPart.cs
- ActivityDesignerLayoutSerializers.cs
- Exceptions.cs