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
- ErrorHandlingAcceptor.cs
- HMACSHA384.cs
- hresults.cs
- Pair.cs
- XmlEnumAttribute.cs
- GeneralTransform3DTo2D.cs
- OdbcUtils.cs
- ScrollViewerAutomationPeer.cs
- DataGridRowHeaderAutomationPeer.cs
- MatchAttribute.cs
- TextServicesManager.cs
- RangeContentEnumerator.cs
- ReadOnlyDataSourceView.cs
- ResourceDescriptionAttribute.cs
- WorkflowMarkupSerializer.cs
- ListSourceHelper.cs
- PathSegment.cs
- Formatter.cs
- PartialTrustVisibleAssembly.cs
- ObfuscateAssemblyAttribute.cs
- NumberFormatInfo.cs
- Delegate.cs
- EnlistmentTraceIdentifier.cs
- ListViewAutomationPeer.cs
- CodeValidator.cs
- XmlWhitespace.cs
- filewebrequest.cs
- XmlResolver.cs
- TransformationRules.cs
- ProfileManager.cs
- SoapSchemaMember.cs
- ProvideValueServiceProvider.cs
- XmlIncludeAttribute.cs
- _NegoStream.cs
- PresentationAppDomainManager.cs
- ItemCollection.cs
- HtmlContainerControl.cs
- Span.cs
- TargetPerspective.cs
- NullableFloatSumAggregationOperator.cs
- Drawing.cs
- PrimitiveType.cs
- RemotingServices.cs
- PassportAuthenticationModule.cs
- EdmRelationshipRoleAttribute.cs
- FlowDocumentFormatter.cs
- Simplifier.cs
- JsonQueryStringConverter.cs
- KeyFrames.cs
- GridViewSelectEventArgs.cs
- GridViewDeleteEventArgs.cs
- XmlReturnReader.cs
- MobileUITypeEditor.cs
- DatePickerAutomationPeer.cs
- DefaultValueConverter.cs
- ComboBoxRenderer.cs
- TypeDelegator.cs
- ConfigXmlComment.cs
- ProfileSection.cs
- SiteMapPath.cs
- CancellationTokenSource.cs
- MessageBox.cs
- Preprocessor.cs
- ThicknessAnimation.cs
- Emitter.cs
- GestureRecognizer.cs
- KeyInstance.cs
- Permission.cs
- StatusBarPanel.cs
- TreePrinter.cs
- LoginViewDesigner.cs
- FacetDescriptionElement.cs
- UnsettableComboBox.cs
- UInt16.cs
- XPathEmptyIterator.cs
- MediaTimeline.cs
- SourceExpressionException.cs
- FrameworkContentElementAutomationPeer.cs
- Html32TextWriter.cs
- SqlBulkCopyColumnMappingCollection.cs
- Matrix.cs
- AuthenticationManager.cs
- ParseChildrenAsPropertiesAttribute.cs
- SqlBinder.cs
- SByte.cs
- DataGridViewHeaderCell.cs
- Exceptions.cs
- DataSourceConverter.cs
- KernelTypeValidation.cs
- BatchServiceHost.cs
- ImageMap.cs
- ErrorTolerantObjectWriter.cs
- Model3DGroup.cs
- PeerPresenceInfo.cs
- AutoGeneratedFieldProperties.cs
- SuppressMessageAttribute.cs
- SerializerProvider.cs
- StylusPointCollection.cs
- CacheVirtualItemsEvent.cs
- DetailsViewCommandEventArgs.cs