Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Configuration / System / Configuration / EmptyImpersonationContext.cs / 1 / EmptyImpersonationContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Security; using System.Text; using System.Xml; // An impersonation context that does nothing // Used in cases where the Host does not require impersonation. class EmptyImpersonationContext : IDisposable { static IDisposable s_emptyImpersonationContext; static internal IDisposable GetStaticInstance() { if (s_emptyImpersonationContext == null) { s_emptyImpersonationContext = new EmptyImpersonationContext(); } return s_emptyImpersonationContext; } public void Dispose() {} } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Globalization; using System.IO; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Security; using System.Text; using System.Xml; // An impersonation context that does nothing // Used in cases where the Host does not require impersonation. class EmptyImpersonationContext : IDisposable { static IDisposable s_emptyImpersonationContext; static internal IDisposable GetStaticInstance() { if (s_emptyImpersonationContext == null) { s_emptyImpersonationContext = new EmptyImpersonationContext(); } return s_emptyImpersonationContext; } public void Dispose() {} } } // 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
- WorkItem.cs
- SapiGrammar.cs
- XmlNamedNodeMap.cs
- XNodeValidator.cs
- CommonXSendMessage.cs
- DeflateEmulationStream.cs
- UserInitiatedRoutedEventPermission.cs
- VScrollProperties.cs
- EpmSyndicationContentDeSerializer.cs
- BoundField.cs
- QilBinary.cs
- XmlSchemaImport.cs
- HScrollBar.cs
- xamlnodes.cs
- PrintPreviewControl.cs
- TypeElement.cs
- BitmapDownload.cs
- WebPartAddingEventArgs.cs
- HtmlWindowCollection.cs
- NavigationFailedEventArgs.cs
- XmlDataSource.cs
- HtmlToClrEventProxy.cs
- CqlBlock.cs
- SchemaContext.cs
- WebBrowser.cs
- ModelService.cs
- EncryptedData.cs
- PolyLineSegmentFigureLogic.cs
- FamilyCollection.cs
- PeerApplication.cs
- OledbConnectionStringbuilder.cs
- _ServiceNameStore.cs
- Scanner.cs
- WebPartPersonalization.cs
- BevelBitmapEffect.cs
- HtmlTableCellCollection.cs
- DataSvcMapFile.cs
- IProvider.cs
- PathSegmentCollection.cs
- SessionIDManager.cs
- ProviderBase.cs
- TableParagraph.cs
- ValueProviderWrapper.cs
- GroupBoxRenderer.cs
- ComponentEditorPage.cs
- HtmlInputRadioButton.cs
- TextOnlyOutput.cs
- SamlConditions.cs
- SchemaImporterExtension.cs
- CodeGeneratorAttribute.cs
- CapabilitiesRule.cs
- Site.cs
- CookielessHelper.cs
- serverconfig.cs
- HTTPNotFoundHandler.cs
- SqlDataSourceFilteringEventArgs.cs
- HostedHttpRequestAsyncResult.cs
- BaseProcessor.cs
- ProfilePropertyMetadata.cs
- FontResourceCache.cs
- SqlNode.cs
- FormsAuthenticationUserCollection.cs
- MaterialGroup.cs
- WindowsFormsLinkLabel.cs
- LassoSelectionBehavior.cs
- WebPartVerbCollection.cs
- SAPIEngineTypes.cs
- SiteMapSection.cs
- oledbmetadatacolumnnames.cs
- COM2IProvidePropertyBuilderHandler.cs
- CodeTypeReference.cs
- TableHeaderCell.cs
- SqlIdentifier.cs
- TableLayoutRowStyleCollection.cs
- XpsFilter.cs
- KeyTime.cs
- Policy.cs
- AmbientProperties.cs
- AutomationFocusChangedEventArgs.cs
- VoiceChangeEventArgs.cs
- _SpnDictionary.cs
- _Win32.cs
- InputScopeManager.cs
- IDictionary.cs
- VSDExceptions.cs
- LocalizeDesigner.cs
- UnknownWrapper.cs
- CollectionViewGroup.cs
- WebBrowserPermission.cs
- IndexedGlyphRun.cs
- QilExpression.cs
- SchemaMapping.cs
- CodeDefaultValueExpression.cs
- XmlMtomReader.cs
- EncoderParameters.cs
- MessageBodyMemberAttribute.cs
- FormParameter.cs
- ValidatingReaderNodeData.cs
- DataGridViewComboBoxColumnDesigner.cs
- ResourceAssociationSetEnd.cs