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
- WebPartTracker.cs
- EventProviderTraceListener.cs
- Switch.cs
- DelimitedListTraceListener.cs
- Msmq.cs
- StatusStrip.cs
- ListViewTableCell.cs
- ToolboxItem.cs
- MouseGestureValueSerializer.cs
- ConfigurationManagerHelper.cs
- DataMemberFieldEditor.cs
- ProfilePropertySettingsCollection.cs
- DefaultValueConverter.cs
- PixelShader.cs
- AppliedDeviceFiltersEditor.cs
- ApplicationServiceHelper.cs
- ScaleTransform.cs
- Clock.cs
- TypographyProperties.cs
- InfoCardCryptoHelper.cs
- Translator.cs
- SqlDataSourceCache.cs
- XmlBufferedByteStreamReader.cs
- SizeChangedInfo.cs
- MexHttpBindingElement.cs
- ListView.cs
- SelectionList.cs
- ExpressionWriter.cs
- CalendarDataBindingHandler.cs
- FontNamesConverter.cs
- CapabilitiesRule.cs
- NamespaceExpr.cs
- TraceInternal.cs
- SortKey.cs
- HealthMonitoringSection.cs
- TypeDependencyAttribute.cs
- IncrementalCompileAnalyzer.cs
- ModelUIElement3D.cs
- Point.cs
- DocumentSchemaValidator.cs
- MSAAEventDispatcher.cs
- HttpListenerException.cs
- SqlDataSourceEnumerator.cs
- FormViewInsertedEventArgs.cs
- DataListGeneralPage.cs
- remotingproxy.cs
- GeometryGroup.cs
- HTMLTextWriter.cs
- PrimitiveOperationFormatter.cs
- CommonObjectSecurity.cs
- SqlHelper.cs
- EncoderParameter.cs
- DataControlImageButton.cs
- safelinkcollection.cs
- MouseWheelEventArgs.cs
- DropShadowEffect.cs
- ActivityExecutorOperation.cs
- ConstNode.cs
- SafeFileMappingHandle.cs
- TabItemAutomationPeer.cs
- SafeCryptoHandles.cs
- SendAgentStatusRequest.cs
- TextTrailingWordEllipsis.cs
- XmlSchemaSimpleContent.cs
- ConditionChanges.cs
- Atom10FormatterFactory.cs
- ElementMarkupObject.cs
- SelectionChangedEventArgs.cs
- CaseKeyBox.ViewModel.cs
- ActivityInterfaces.cs
- IResourceProvider.cs
- UnionCodeGroup.cs
- GreenMethods.cs
- CatalogZoneAutoFormat.cs
- WebPartDisplayMode.cs
- messageonlyhwndwrapper.cs
- RemoteWebConfigurationHost.cs
- Assembly.cs
- ThreadAbortException.cs
- EventLogStatus.cs
- WriterOutput.cs
- DiscoveryReferences.cs
- SoundPlayerAction.cs
- DataGridViewElement.cs
- HtmlInputImage.cs
- ArrangedElementCollection.cs
- InvalidOperationException.cs
- SchemaImporterExtensionElement.cs
- TextEffectCollection.cs
- DataDocumentXPathNavigator.cs
- HostingEnvironmentWrapper.cs
- RoleGroupCollection.cs
- WindowsBrush.cs
- ReferentialConstraint.cs
- XmlChildEnumerator.cs
- TextRangeEdit.cs
- ColorPalette.cs
- ASCIIEncoding.cs
- XamlWriter.cs
- AudioDeviceOut.cs