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
- TableHeaderCell.cs
- XmlUrlResolver.cs
- CFStream.cs
- DbLambda.cs
- OleDbFactory.cs
- ConfigurationValues.cs
- ComPlusDiagnosticTraceRecords.cs
- SymbolType.cs
- PopOutPanel.cs
- OleDbCommand.cs
- PixelFormat.cs
- SimpleHandlerBuildProvider.cs
- ExpandCollapseProviderWrapper.cs
- PermissionRequestEvidence.cs
- PairComparer.cs
- MetadataImporterQuotas.cs
- PerformanceCounterManager.cs
- webproxy.cs
- TransformCollection.cs
- AutomationPatternInfo.cs
- CommonXSendMessage.cs
- XslException.cs
- MenuCommand.cs
- StrokeCollectionDefaultValueFactory.cs
- SafeNativeMethods.cs
- DeploymentSection.cs
- CaseInsensitiveHashCodeProvider.cs
- CreateUserWizardStep.cs
- FixedSOMPageConstructor.cs
- SortQueryOperator.cs
- AuthenticationSection.cs
- WaveHeader.cs
- PrinterUnitConvert.cs
- IISMapPath.cs
- ReadWriteSpinLock.cs
- Number.cs
- TableLayoutStyle.cs
- ISCIIEncoding.cs
- ScriptReference.cs
- TaskDesigner.cs
- CodeActivityContext.cs
- ProtocolsConfigurationEntry.cs
- TypeListConverter.cs
- GlyphRun.cs
- ViewGenerator.cs
- RenderDataDrawingContext.cs
- CrossContextChannel.cs
- AssemblyInfo.cs
- _FtpControlStream.cs
- DataGridCellsPresenter.cs
- StreamInfo.cs
- XmlUrlResolver.cs
- XamlReader.cs
- KeyNotFoundException.cs
- FloaterParaClient.cs
- ExpressionBuilder.cs
- AccessorTable.cs
- DataSetUtil.cs
- Bezier.cs
- DataGridViewCellEventArgs.cs
- PromptBuilder.cs
- Attributes.cs
- TextElementCollectionHelper.cs
- AnnotationMap.cs
- SingleQueryOperator.cs
- ResourceExpressionEditor.cs
- Object.cs
- Label.cs
- EventProviderWriter.cs
- BinaryCommonClasses.cs
- UnsafeNativeMethods.cs
- ObjectListTitleAttribute.cs
- CodeAttributeDeclarationCollection.cs
- GlobalizationSection.cs
- NotifyInputEventArgs.cs
- WebBrowser.cs
- EditBehavior.cs
- MailSettingsSection.cs
- shaperfactory.cs
- SqlTriggerContext.cs
- TimeoutException.cs
- UidPropertyAttribute.cs
- SiteMapPath.cs
- WinEventHandler.cs
- SrgsSemanticInterpretationTag.cs
- ExternalFile.cs
- ScrollPattern.cs
- EntityDataSourceDataSelectionPanel.cs
- SQLBoolean.cs
- Stopwatch.cs
- OutputCacheEntry.cs
- DataKeyArray.cs
- DataGridViewCellPaintingEventArgs.cs
- _PooledStream.cs
- InkCanvasAutomationPeer.cs
- TypeSystemProvider.cs
- DrawingBrush.cs
- BindMarkupExtensionSerializer.cs
- ContextInformation.cs
- TextTreeDeleteContentUndoUnit.cs