Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / SecurityContext.cs / 1305376 / SecurityContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Messaging.Interop; public sealed class SecurityContext : IDisposable { SecurityContextHandle handle; bool disposed; internal SecurityContext(SecurityContextHandle securityContext) { handle = securityContext; } internal SecurityContextHandle Handle { get { if (disposed) throw new ObjectDisposedException(GetType().Name); return handle; } } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } void Dispose(bool disposing) { if (disposing) handle.Close(); disposed = true; } ~SecurityContext() { Dispose(false); } } } // 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
- PolicyDesigner.cs
- RtfNavigator.cs
- TransformBlockRequest.cs
- JoinElimination.cs
- IsolatedStorageFile.cs
- ProcessProtocolHandler.cs
- PageContentCollection.cs
- CacheMemory.cs
- WSHttpSecurity.cs
- SynchronizedInputProviderWrapper.cs
- _NTAuthentication.cs
- TraceListener.cs
- ExpressionPrefixAttribute.cs
- GenericUI.cs
- SyntaxCheck.cs
- ScriptHandlerFactory.cs
- ContextDataSource.cs
- Int32CollectionConverter.cs
- WebInvokeAttribute.cs
- XmlDataDocument.cs
- FormatterConverter.cs
- NavigationProperty.cs
- BidOverLoads.cs
- PackageFilter.cs
- ControlAdapter.cs
- PartialArray.cs
- EntityObject.cs
- InputMethod.cs
- GroupItem.cs
- Parameter.cs
- SafeRightsManagementQueryHandle.cs
- InternalsVisibleToAttribute.cs
- PrinterResolution.cs
- TypeForwardedToAttribute.cs
- XmlTypeMapping.cs
- SplitContainer.cs
- StringAttributeCollection.cs
- QuaternionConverter.cs
- WebHttpSecurityElement.cs
- CharUnicodeInfo.cs
- SafeUserTokenHandle.cs
- FrameworkContentElement.cs
- EventListener.cs
- WindowClosedEventArgs.cs
- XPathExpr.cs
- PasswordRecovery.cs
- DataGridViewImageCell.cs
- VectorValueSerializer.cs
- EntityParameter.cs
- SQLInt64.cs
- ScrollEvent.cs
- ContextProperty.cs
- SoapFault.cs
- LocalizableResourceBuilder.cs
- securitycriticaldata.cs
- XmlSchemaGroup.cs
- PriorityQueue.cs
- ParserExtension.cs
- NavigationPropertySingletonExpression.cs
- _ListenerResponseStream.cs
- DetailsViewDeleteEventArgs.cs
- RecognizerInfo.cs
- GCHandleCookieTable.cs
- EditorAttribute.cs
- NavigationPropertySingletonExpression.cs
- Container.cs
- DocumentXPathNavigator.cs
- LogSwitch.cs
- ToolStripItem.cs
- MediaCommands.cs
- SignatureHelper.cs
- AspNetSynchronizationContext.cs
- ShaderEffect.cs
- XmlIncludeAttribute.cs
- VisualBasicSettingsConverter.cs
- CacheOutputQuery.cs
- DependencyProperty.cs
- CatalogPartCollection.cs
- WindowsComboBox.cs
- SafeTimerHandle.cs
- ApplyTemplatesAction.cs
- OutputCacheProfile.cs
- RangeValueProviderWrapper.cs
- OracleMonthSpan.cs
- ReliableMessagingVersionConverter.cs
- AsyncOperationManager.cs
- WebPartCollection.cs
- SecurityRequiresReviewAttribute.cs
- CacheRequest.cs
- TypeDependencyAttribute.cs
- RenderingEventArgs.cs
- TextBox.cs
- TypefaceMap.cs
- SqlDataAdapter.cs
- HttpCacheVaryByContentEncodings.cs
- CircleHotSpot.cs
- XmlNodeList.cs
- ErrorWebPart.cs
- Listen.cs
- WebPartDeleteVerb.cs