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
- DataGridColumn.cs
- ExpressionVisitor.cs
- DesignerCategoryAttribute.cs
- UserNameSecurityTokenProvider.cs
- ProfilePropertyNameValidator.cs
- AsyncCompletedEventArgs.cs
- RemotingException.cs
- VScrollBar.cs
- StringUtil.cs
- EntityDesignerDataSourceView.cs
- DataSourceControl.cs
- ChooseAction.cs
- PolicyLevel.cs
- Int64Storage.cs
- MgmtConfigurationRecord.cs
- Canvas.cs
- TableLayoutPanelCellPosition.cs
- CalendarDay.cs
- LambdaCompiler.Logical.cs
- StringPropertyBuilder.cs
- RuntimeResourceSet.cs
- SynchronizingStream.cs
- TextBoxRenderer.cs
- DesignerInterfaces.cs
- MD5.cs
- AnimationTimeline.cs
- xmlsaver.cs
- _SingleItemRequestCache.cs
- ScaleTransform3D.cs
- ByteStream.cs
- GPStream.cs
- Label.cs
- XmlCharType.cs
- TemplateControlCodeDomTreeGenerator.cs
- _StreamFramer.cs
- DbProviderFactory.cs
- ProxyHelper.cs
- ToolStripRendererSwitcher.cs
- DesignTableCollection.cs
- SplitContainer.cs
- CultureInfoConverter.cs
- RichListBox.cs
- BitmapCodecInfoInternal.cs
- PowerStatus.cs
- Html32TextWriter.cs
- SimplePropertyEntry.cs
- ContextMenuStrip.cs
- SystemResourceHost.cs
- OracleParameterBinding.cs
- PreProcessor.cs
- ReaderContextStackData.cs
- SortDescriptionCollection.cs
- CreatingCookieEventArgs.cs
- DataSet.cs
- PolicyLevel.cs
- SoapEnvelopeProcessingElement.cs
- KeyBinding.cs
- DocumentPage.cs
- DWriteFactory.cs
- FormsAuthenticationTicket.cs
- GeneralTransform2DTo3D.cs
- TitleStyle.cs
- ToolStripDesignerUtils.cs
- HtmlWindow.cs
- Latin1Encoding.cs
- SymbolTable.cs
- SystemBrushes.cs
- SmtpNtlmAuthenticationModule.cs
- DescendantQuery.cs
- WebPartCancelEventArgs.cs
- GuidelineCollection.cs
- FixedSOMTableCell.cs
- IPipelineRuntime.cs
- ExponentialEase.cs
- RegexNode.cs
- DocumentOrderQuery.cs
- X509InitiatorCertificateClientElement.cs
- RectAnimationUsingKeyFrames.cs
- ActivitySurrogateSelector.cs
- OrderedDictionary.cs
- Component.cs
- UIElementIsland.cs
- GB18030Encoding.cs
- UIElementParagraph.cs
- Brush.cs
- EventSourceCreationData.cs
- PackagingUtilities.cs
- PageRouteHandler.cs
- wpf-etw.cs
- ObjRef.cs
- ThicknessConverter.cs
- XmlSchemaImport.cs
- SimpleBitVector32.cs
- DrawItemEvent.cs
- DataGridLength.cs
- CollectionBuilder.cs
- AccessDataSourceWizardForm.cs
- DeclarativeExpressionConditionDeclaration.cs
- ActivityTypeCodeDomSerializer.cs
- GiveFeedbackEvent.cs