Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Threading / AbandonedMutexException.cs / 1 / 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; } 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomValidator.cs
- SessionStateContainer.cs
- ObjectTag.cs
- LayoutDump.cs
- WindowsSidIdentity.cs
- SplitContainer.cs
- BackgroundFormatInfo.cs
- Site.cs
- DataGridViewRowCollection.cs
- ExpressionTextBox.xaml.cs
- SessionStateItemCollection.cs
- LinqDataSourceContextEventArgs.cs
- DateTimeSerializationSection.cs
- PermissionSetEnumerator.cs
- SessionStateModule.cs
- EventHandlingScope.cs
- WindowsUpDown.cs
- SqlGenericUtil.cs
- InvalidPropValue.cs
- SmtpMail.cs
- ServiceDebugBehavior.cs
- Touch.cs
- RSAPKCS1SignatureDeformatter.cs
- OleDbMetaDataFactory.cs
- XmlSchemaType.cs
- SafeRightsManagementHandle.cs
- CompoundFileStorageReference.cs
- View.cs
- sqlcontext.cs
- TypeHelpers.cs
- ValidationResult.cs
- SafeHandles.cs
- Calendar.cs
- SingleConverter.cs
- RotateTransform.cs
- FieldNameLookup.cs
- DetailsViewPagerRow.cs
- DataGridViewColumnCollection.cs
- SelectionEditingBehavior.cs
- StreamGeometry.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- MetricEntry.cs
- FindResponse.cs
- Error.cs
- Html32TextWriter.cs
- WebBrowser.cs
- TemplateParser.cs
- CodeRegionDirective.cs
- ReadContentAsBinaryHelper.cs
- securestring.cs
- ClickablePoint.cs
- ObjectPersistData.cs
- GraphicsContainer.cs
- _TransmitFileOverlappedAsyncResult.cs
- SqlServer2KCompatibilityAnnotation.cs
- GetPageCompletedEventArgs.cs
- SafeNativeMethodsCLR.cs
- FormParameter.cs
- MobileComponentEditorPage.cs
- StorageEndPropertyMapping.cs
- ConnectionPointCookie.cs
- AmbiguousMatchException.cs
- AffineTransform3D.cs
- RightsManagementEncryptionTransform.cs
- MessageQueuePermissionEntryCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- CompareValidator.cs
- DetailsViewRow.cs
- IItemContainerGenerator.cs
- IntSecurity.cs
- QilReplaceVisitor.cs
- BaseTypeViewSchema.cs
- ToolStripPanelSelectionGlyph.cs
- TimersDescriptionAttribute.cs
- SQLResource.cs
- MultipleCopiesCollection.cs
- PrefixQName.cs
- XmlSchemaNotation.cs
- InkCanvasSelection.cs
- ToolStripItemRenderEventArgs.cs
- InputEventArgs.cs
- HandleScope.cs
- InfocardChannelParameter.cs
- XmlSchemaChoice.cs
- ConnectionStringSettings.cs
- ButtonPopupAdapter.cs
- Select.cs
- CurrentChangingEventArgs.cs
- SoapDocumentServiceAttribute.cs
- SelfIssuedAuthRSACryptoProvider.cs
- CngUIPolicy.cs
- JsonReader.cs
- RuleInfoComparer.cs
- CaseInsensitiveOrdinalStringComparer.cs
- DecoratedNameAttribute.cs
- LoginUtil.cs
- X509CertificateCollection.cs
- WebSysDisplayNameAttribute.cs
- WorkflowShape.cs
- XPathDocument.cs