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
- DropDownList.cs
- SchemaTableOptionalColumn.cs
- Paragraph.cs
- ViewManager.cs
- GroupDescription.cs
- Convert.cs
- ObjectViewFactory.cs
- PropertyGrid.cs
- LocationChangedEventArgs.cs
- Viewport3DAutomationPeer.cs
- FillBehavior.cs
- PathSegment.cs
- RefExpr.cs
- GenericPrincipal.cs
- SerializerDescriptor.cs
- SystemParameters.cs
- EnumValidator.cs
- BufferedGraphics.cs
- HostDesigntimeLicenseContext.cs
- EditingCommands.cs
- WebConfigurationFileMap.cs
- DynamicMethod.cs
- DynamicRenderer.cs
- ClonableStack.cs
- AdornerHitTestResult.cs
- ResourceDisplayNameAttribute.cs
- UIElementPropertyUndoUnit.cs
- TabItem.cs
- ImageMap.cs
- DelayedRegex.cs
- SubtreeProcessor.cs
- SignalGate.cs
- ListBoxAutomationPeer.cs
- InternalPolicyElement.cs
- NotifyInputEventArgs.cs
- Buffer.cs
- TrustExchangeException.cs
- TablePatternIdentifiers.cs
- AlgoModule.cs
- XmlTextAttribute.cs
- EntityDataSourceContainerNameItem.cs
- LassoHelper.cs
- LocatorGroup.cs
- ProbeMatchesMessage11.cs
- ScalarConstant.cs
- PageCache.cs
- StrongName.cs
- loginstatus.cs
- JumpPath.cs
- ReliableOutputSessionChannel.cs
- WsdlBuildProvider.cs
- ThreadExceptionEvent.cs
- RawStylusInputCustomDataList.cs
- CSharpCodeProvider.cs
- UnsafeNativeMethods.cs
- BaseParagraph.cs
- DefaultValueConverter.cs
- _HeaderInfoTable.cs
- TemplateParser.cs
- CallTemplateAction.cs
- TextTreeDeleteContentUndoUnit.cs
- FixedHighlight.cs
- precedingsibling.cs
- Hashtable.cs
- InfoCardBinaryReader.cs
- ToolStripSplitStackLayout.cs
- DrawingVisual.cs
- CancellationHandlerDesigner.cs
- CompatibleComparer.cs
- StringWriter.cs
- PrintDialog.cs
- GregorianCalendarHelper.cs
- SrgsElement.cs
- HScrollProperties.cs
- Ref.cs
- SecurityPolicySection.cs
- ApplicationTrust.cs
- HijriCalendar.cs
- VolatileEnlistmentMultiplexing.cs
- ScopelessEnumAttribute.cs
- NodeLabelEditEvent.cs
- TableRowCollection.cs
- InputLanguageProfileNotifySink.cs
- NamespaceList.cs
- WinEventQueueItem.cs
- OleDbParameter.cs
- SafeArrayTypeMismatchException.cs
- CfgParser.cs
- CommonProperties.cs
- RemoteWebConfigurationHostStream.cs
- DynamicValidatorEventArgs.cs
- SortDescriptionCollection.cs
- GeneralTransform2DTo3DTo2D.cs
- XhtmlStyleClass.cs
- Thread.cs
- ObjectDataSourceSelectingEventArgs.cs
- KoreanCalendar.cs
- EpmContentSerializerBase.cs
- ExecutionPropertyManager.cs
- CodeParameterDeclarationExpressionCollection.cs