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
- PipelineModuleStepContainer.cs
- MetadataPropertyvalue.cs
- NameValuePair.cs
- FormatPage.cs
- HeaderLabel.cs
- DecoderFallback.cs
- WebPartsPersonalization.cs
- HttpCacheVary.cs
- TemplateComponentConnector.cs
- ComPersistableTypeElement.cs
- HyperLinkField.cs
- TextDecorationCollection.cs
- StreamReader.cs
- ToolBarTray.cs
- RawStylusInputCustomData.cs
- DefaultMemberAttribute.cs
- BindingFormattingDialog.cs
- DependencyPropertyAttribute.cs
- MdImport.cs
- UserNameSecurityTokenProvider.cs
- AttributeEmitter.cs
- TypeUtil.cs
- PictureBox.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- WizardStepCollectionEditor.cs
- AsymmetricSignatureDeformatter.cs
- UriTemplateQueryValue.cs
- MsmqChannelFactory.cs
- TTSEngineTypes.cs
- AssemblyAttributesGoHere.cs
- EngineSiteSapi.cs
- CheckPair.cs
- DetailsViewInsertedEventArgs.cs
- ConfigXmlComment.cs
- XmlBinaryReaderSession.cs
- DeleteBookmarkScope.cs
- OledbConnectionStringbuilder.cs
- MetadataArtifactLoader.cs
- FigureParagraph.cs
- TransactionContextValidator.cs
- Geometry.cs
- ScriptMethodAttribute.cs
- __Filters.cs
- ReliabilityContractAttribute.cs
- AssociationSetEnd.cs
- UpDownEvent.cs
- AnimatedTypeHelpers.cs
- PhoneCallDesigner.cs
- ExpressionWriter.cs
- DesignerSerializationManager.cs
- TraceXPathNavigator.cs
- SoapInteropTypes.cs
- WebPartEditorApplyVerb.cs
- TraceContextEventArgs.cs
- ThrowHelper.cs
- COM2PropertyDescriptor.cs
- QuotedStringWriteStateInfo.cs
- ProcessModelInfo.cs
- AnnotationService.cs
- ElementInit.cs
- rsa.cs
- ImageList.cs
- TrustLevel.cs
- ToolStripDropDown.cs
- ModuleBuilder.cs
- _CommandStream.cs
- PopupControlService.cs
- ObjectListTitleAttribute.cs
- MTConfigUtil.cs
- HttpCacheVary.cs
- InputScopeNameConverter.cs
- Message.cs
- ByteStack.cs
- UIHelper.cs
- AutomationPatternInfo.cs
- ElementHost.cs
- DbParameterCollection.cs
- Debugger.cs
- GridView.cs
- XPathChildIterator.cs
- TableAutomationPeer.cs
- DBSqlParserColumnCollection.cs
- TypeValidationEventArgs.cs
- COM2ColorConverter.cs
- SecuritySessionClientSettings.cs
- EndOfStreamException.cs
- StatusBar.cs
- ShaperBuffers.cs
- ControlCachePolicy.cs
- ApplicationServiceManager.cs
- ManagedFilter.cs
- TemplateBindingExpression.cs
- WinFormsUtils.cs
- XhtmlBasicCalendarAdapter.cs
- Mouse.cs
- InheritablePropertyChangeInfo.cs
- FileDetails.cs
- DesignerActionUIStateChangeEventArgs.cs
- GACIdentityPermission.cs
- TimeoutValidationAttribute.cs