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
- KeyConverter.cs
- FixedSOMTableRow.cs
- OletxCommittableTransaction.cs
- SHA384Managed.cs
- TemplateAction.cs
- EventManager.cs
- StoreContentChangedEventArgs.cs
- ResourceReferenceExpression.cs
- TreeNodeMouseHoverEvent.cs
- CodeBinaryOperatorExpression.cs
- SettingsPropertyNotFoundException.cs
- BamlCollectionHolder.cs
- InvalidFilterCriteriaException.cs
- AnonymousIdentificationSection.cs
- ISSmlParser.cs
- SiteMapDesignerDataSourceView.cs
- CodeSnippetExpression.cs
- PagesSection.cs
- SafeHandle.cs
- FunctionMappingTranslator.cs
- DecoderExceptionFallback.cs
- TextRangeProviderWrapper.cs
- HitTestFilterBehavior.cs
- MimeFormImporter.cs
- RegistrySecurity.cs
- assertwrapper.cs
- LowerCaseStringConverter.cs
- SafeThreadHandle.cs
- ASCIIEncoding.cs
- SimpleHandlerBuildProvider.cs
- DesignerTransactionCloseEvent.cs
- ListViewInsertEventArgs.cs
- HyperLinkStyle.cs
- TerminateDesigner.cs
- IdentityModelStringsVersion1.cs
- _IPv4Address.cs
- CodeDomConfigurationHandler.cs
- NullableIntSumAggregationOperator.cs
- BufferedOutputStream.cs
- MouseDevice.cs
- HtmlTable.cs
- HwndSourceParameters.cs
- ConfigurationCollectionAttribute.cs
- TabletDeviceInfo.cs
- XmlDocumentSerializer.cs
- Quaternion.cs
- SecurityPolicySection.cs
- ConfigurationManagerHelperFactory.cs
- HyperLinkStyle.cs
- FrameworkElement.cs
- PeerObject.cs
- DoubleIndependentAnimationStorage.cs
- CodeTryCatchFinallyStatement.cs
- FileDialogCustomPlace.cs
- Stylus.cs
- DataGridAddNewRow.cs
- HierarchicalDataBoundControlAdapter.cs
- SecurityTokenException.cs
- TextElement.cs
- VerificationException.cs
- DataGridHeaderBorder.cs
- ThreadExceptionDialog.cs
- BuildManager.cs
- MbpInfo.cs
- GeometryHitTestParameters.cs
- RefreshEventArgs.cs
- SQLByte.cs
- FileSystemWatcher.cs
- ModuleBuilderData.cs
- HttpModulesSection.cs
- Label.cs
- SortAction.cs
- IndividualDeviceConfig.cs
- SqlDataReaderSmi.cs
- ApplicationProxyInternal.cs
- Semaphore.cs
- OrderByBuilder.cs
- DeclarativeCatalogPart.cs
- MediaPlayer.cs
- AssemblyUtil.cs
- EventRecord.cs
- CodeObjectCreateExpression.cs
- AddInStore.cs
- ComponentChangingEvent.cs
- SEHException.cs
- XmlDocumentViewSchema.cs
- OdbcFactory.cs
- XmlLanguage.cs
- DateTimeStorage.cs
- UriSection.cs
- _ContextAwareResult.cs
- EncryptedReference.cs
- SqlParameterCollection.cs
- SplitterCancelEvent.cs
- ControlPropertyNameConverter.cs
- RegistrySecurity.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- PointHitTestParameters.cs
- SaveFileDialog.cs
- MessageSmuggler.cs