Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / AbandonedMutexException.cs / 1305376 / AbandonedMutexException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // //[....] // // AbandonedMutexException // Thrown when a wait completes because one or more mutexes was abandoned. // AbandonedMutexs indicate serious error in user code or machine state. //////////////////////////////////////////////////////////////////////////////// namespace System.Threading { using System; using System.Runtime.Serialization; using System.Threading; using System.Runtime.InteropServices; [Serializable] [ComVisibleAttribute(false)] public class AbandonedMutexException : SystemException { private int m_MutexIndex = -1; private Mutex m_Mutex = null; public AbandonedMutexException() : base(Environment.GetResourceString("Threading.AbandonedMutexException")) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(String message, Exception inner ) : base(message, inner) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(int location, WaitHandle handle) : base(Environment.GetResourceString("Threading.AbandonedMutexException")) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } public AbandonedMutexException(String message,int location, WaitHandle handle) : base(message) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } public AbandonedMutexException(String message, Exception inner,int location, WaitHandle handle ) : base(message, inner) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } private void SetupException(int location, WaitHandle handle) { m_MutexIndex = location; if(handle != null) m_Mutex = handle as Mutex; } [System.Security.SecuritySafeCritical] // auto-generated protected AbandonedMutexException(SerializationInfo info, StreamingContext context) : base(info, context) { } public Mutex Mutex { get { return m_Mutex; } } public int MutexIndex { get{ return m_MutexIndex; } } } } // 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
- XmlRootAttribute.cs
- _BaseOverlappedAsyncResult.cs
- VerticalAlignConverter.cs
- OleDbMetaDataFactory.cs
- FrameworkReadOnlyPropertyMetadata.cs
- LinearKeyFrames.cs
- StateDesigner.Layouts.cs
- TerminateDesigner.cs
- EntityReference.cs
- WindowsFormsHelpers.cs
- StickyNoteContentControl.cs
- XmlSchemaInferenceException.cs
- TitleStyle.cs
- XmlMemberMapping.cs
- UrlAuthFailedErrorFormatter.cs
- Bits.cs
- DialogResultConverter.cs
- ApplicationDirectoryMembershipCondition.cs
- InternalConfigHost.cs
- Win32PrintDialog.cs
- ExecutionEngineException.cs
- SafeNativeMethodsCLR.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TCPClient.cs
- InfiniteTimeSpanConverter.cs
- OdbcStatementHandle.cs
- TimerElapsedEvenArgs.cs
- UnsafeNativeMethods.cs
- RC2.cs
- XmlDesigner.cs
- ReferencedAssemblyResolver.cs
- IndexerNameAttribute.cs
- SecurityRuntime.cs
- FontFamilyValueSerializer.cs
- TimerElapsedEvenArgs.cs
- CultureTableRecord.cs
- BamlBinaryWriter.cs
- AssemblyUtil.cs
- ToolBarButton.cs
- SerializerWriterEventHandlers.cs
- Substitution.cs
- WebPartHelpVerb.cs
- WorkflowApplication.cs
- AssemblyInfo.cs
- StyleReferenceConverter.cs
- LinearKeyFrames.cs
- GridViewHeaderRowPresenter.cs
- SkipStoryboardToFill.cs
- WindowsServiceCredential.cs
- ReaderWriterLock.cs
- RelatedEnd.cs
- ScrollBarAutomationPeer.cs
- DefaultMemberAttribute.cs
- DataGridViewRowCancelEventArgs.cs
- RightNameExpirationInfoPair.cs
- ViewValidator.cs
- ValidationSummaryDesigner.cs
- MatrixStack.cs
- JoinTreeNode.cs
- WebControl.cs
- Sql8ConformanceChecker.cs
- RegexTree.cs
- Vector3dCollection.cs
- Attributes.cs
- PropertyConverter.cs
- DtdParser.cs
- GraphicsContainer.cs
- CancelEventArgs.cs
- DbConnectionPoolOptions.cs
- DrawingContextWalker.cs
- TableLayoutRowStyleCollection.cs
- Calendar.cs
- DataBoundControlDesigner.cs
- VirtualPathData.cs
- RegionInfo.cs
- StreamWriter.cs
- SizeAnimationBase.cs
- CharEnumerator.cs
- CompiledQueryCacheEntry.cs
- ProfessionalColors.cs
- QuaternionRotation3D.cs
- WebPartZoneBase.cs
- SchemaTableOptionalColumn.cs
- XmlDataSource.cs
- Opcode.cs
- QueryOutputWriterV1.cs
- ExtensibleSyndicationObject.cs
- DateTimeConverter2.cs
- QueryOptionExpression.cs
- PathData.cs
- EntityModelBuildProvider.cs
- GrowingArray.cs
- AssociationType.cs
- DataGridViewHeaderCell.cs
- MetadataProperty.cs
- AssociationEndMember.cs
- ImageClickEventArgs.cs
- GeneralTransform3DCollection.cs
- Funcletizer.cs
- SafeFindHandle.cs