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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityIdentifierElement.cs
- CellParagraph.cs
- StreamBodyWriter.cs
- WebPartDescriptionCollection.cs
- IApplicationTrustManager.cs
- PersonalizationProviderHelper.cs
- DeploymentSectionCache.cs
- MouseActionConverter.cs
- BaseDataBoundControl.cs
- DtrList.cs
- EventLogTraceListener.cs
- ExpressionCopier.cs
- SubMenuStyleCollection.cs
- HostedTransportConfigurationBase.cs
- OdbcInfoMessageEvent.cs
- ScrollContentPresenter.cs
- RootProfilePropertySettingsCollection.cs
- WebPartTransformerAttribute.cs
- ScriptDescriptor.cs
- SecureUICommand.cs
- SequentialUshortCollection.cs
- RijndaelManagedTransform.cs
- QueryExtender.cs
- BindingMAnagerBase.cs
- TrueReadOnlyCollection.cs
- ImageResources.Designer.cs
- TextParentUndoUnit.cs
- HttpHandlerAction.cs
- SystemInfo.cs
- KeyEvent.cs
- ComponentCommands.cs
- ObjectListGeneralPage.cs
- RuntimeUtils.cs
- AbstractDataSvcMapFileLoader.cs
- CfgParser.cs
- HtmlTableRowCollection.cs
- DoubleCollection.cs
- NotImplementedException.cs
- WaveHeader.cs
- XmlNodeList.cs
- DeclaredTypeElementCollection.cs
- RightsManagementEncryptedStream.cs
- WebBrowserBase.cs
- FontWeight.cs
- ValidationRule.cs
- ResolvedKeyFrameEntry.cs
- GlyphElement.cs
- MessageContractMemberAttribute.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ViewValidator.cs
- DictionaryBase.cs
- LinkButton.cs
- ReadOnlyTernaryTree.cs
- KeyedCollection.cs
- Int64Converter.cs
- AvTraceFormat.cs
- AuthenticationSection.cs
- LongAverageAggregationOperator.cs
- IndicFontClient.cs
- CapabilitiesRule.cs
- ReaderWriterLockWrapper.cs
- LOSFormatter.cs
- DesignerSerializerAttribute.cs
- KeyValuePair.cs
- AtlasWeb.Designer.cs
- xmlNames.cs
- CompilerResults.cs
- ActiveDocumentEvent.cs
- QuotedPairReader.cs
- QuaternionValueSerializer.cs
- DtdParser.cs
- DataViewListener.cs
- IconConverter.cs
- ContainerFilterService.cs
- SystemException.cs
- DocumentOrderComparer.cs
- SemaphoreFullException.cs
- CodeExporter.cs
- GridItemPatternIdentifiers.cs
- SqlBulkCopyColumnMapping.cs
- FormCollection.cs
- PlacementWorkspace.cs
- SymbolEqualComparer.cs
- UnsafeNativeMethods.cs
- GridViewDeletedEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- WebPartConnectionCollection.cs
- WebPartTransformer.cs
- GridViewItemAutomationPeer.cs
- AssertSection.cs
- QueryOptionExpression.cs
- StorageEndPropertyMapping.cs
- Quaternion.cs
- Rijndael.cs
- Win32Native.cs
- Rotation3D.cs
- Type.cs
- WebReferencesBuildProvider.cs
- HttpCapabilitiesEvaluator.cs
- SortFieldComparer.cs