Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EventProviderWriter.cs
- References.cs
- MetadataCache.cs
- ThreadInterruptedException.cs
- InputGestureCollection.cs
- XmlSchemaFacet.cs
- PersonalizationStateQuery.cs
- FormsAuthenticationConfiguration.cs
- Sql8ConformanceChecker.cs
- ImageIndexConverter.cs
- RawStylusInputReport.cs
- NumberAction.cs
- ErrorHandler.cs
- InvalidComObjectException.cs
- SqlProfileProvider.cs
- SequentialUshortCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlLoader.cs
- ComboBoxItem.cs
- UdpDiscoveryEndpointProvider.cs
- PaperSource.cs
- PersonalizationDictionary.cs
- XPathDocumentBuilder.cs
- AsymmetricSignatureFormatter.cs
- NavigationPropertyEmitter.cs
- ReadOnlyDictionary.cs
- _ScatterGatherBuffers.cs
- ImplicitInputBrush.cs
- RectKeyFrameCollection.cs
- ProgressBarRenderer.cs
- SortQueryOperator.cs
- invalidudtexception.cs
- TextTreeTextElementNode.cs
- OwnerDrawPropertyBag.cs
- WebException.cs
- WebPartActionVerb.cs
- _ListenerResponseStream.cs
- OracleBoolean.cs
- DataGridViewCellValidatingEventArgs.cs
- PreviewPrintController.cs
- RenderOptions.cs
- InputLanguage.cs
- AmbientLight.cs
- SmtpSection.cs
- KoreanLunisolarCalendar.cs
- SyndicationContent.cs
- WinCategoryAttribute.cs
- PageContentAsyncResult.cs
- DuplicateDetector.cs
- StackOverflowException.cs
- SudsWriter.cs
- ContractInferenceHelper.cs
- sqlpipe.cs
- CroppedBitmap.cs
- XPathDescendantIterator.cs
- InputQueue.cs
- EDesignUtil.cs
- CurrencyWrapper.cs
- DynamicILGenerator.cs
- CoreChannel.cs
- BasePattern.cs
- printdlgexmarshaler.cs
- BasicCellRelation.cs
- HelpEvent.cs
- SubqueryRules.cs
- EventSchemaTraceListener.cs
- ContentPlaceHolderDesigner.cs
- DataGrid.cs
- TypeUtil.cs
- SmiRecordBuffer.cs
- StickyNoteContentControl.cs
- PostBackOptions.cs
- SizeAnimationClockResource.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TextRangeEdit.cs
- DrawingState.cs
- ConfigurationStrings.cs
- InertiaTranslationBehavior.cs
- StorageModelBuildProvider.cs
- FixUpCollection.cs
- SelectorItemAutomationPeer.cs
- TemplateInstanceAttribute.cs
- QilReplaceVisitor.cs
- VectorCollectionValueSerializer.cs
- basemetadatamappingvisitor.cs
- SelectedDatesCollection.cs
- CalendarTable.cs
- CertificateElement.cs
- TreeSet.cs
- HtmlTable.cs
- Renderer.cs
- PngBitmapEncoder.cs
- RawStylusInput.cs
- RowCache.cs
- UnicastIPAddressInformationCollection.cs
- TextTrailingWordEllipsis.cs
- RegexFCD.cs
- SerializationInfo.cs
- SystemWebCachingSectionGroup.cs
- ChildChangedEventArgs.cs