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
- ProgressBarAutomationPeer.cs
- Literal.cs
- SignedXml.cs
- FileIOPermission.cs
- HtmlGenericControl.cs
- HtmlControlPersistable.cs
- FrameworkObject.cs
- System.Data.OracleClient_BID.cs
- SignHashRequest.cs
- StaticFileHandler.cs
- MouseActionConverter.cs
- WebServiceData.cs
- HandlerBase.cs
- CircleHotSpot.cs
- LocationSectionRecord.cs
- TextureBrush.cs
- QuestionEventArgs.cs
- TaskbarItemInfo.cs
- GenerateTemporaryTargetAssembly.cs
- DataColumn.cs
- ObservableCollection.cs
- LineVisual.cs
- MonthChangedEventArgs.cs
- AutomationPropertyInfo.cs
- DataPagerFieldCommandEventArgs.cs
- Mapping.cs
- TypeSource.cs
- LoginName.cs
- BodyWriter.cs
- SineEase.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- NotCondition.cs
- ArgumentOutOfRangeException.cs
- Operand.cs
- ControlPager.cs
- RestHandlerFactory.cs
- BrowserCapabilitiesFactoryBase.cs
- ExclusiveCanonicalizationTransform.cs
- ContentWrapperAttribute.cs
- IfJoinedCondition.cs
- SourceFilter.cs
- DataTemplateSelector.cs
- ScrollBarAutomationPeer.cs
- DataBinder.cs
- ColorTransformHelper.cs
- OrderedEnumerableRowCollection.cs
- ContextStack.cs
- TextSpan.cs
- DataBinding.cs
- WindowsScrollBarBits.cs
- ListViewAutomationPeer.cs
- _HeaderInfoTable.cs
- PeerApplication.cs
- TabPage.cs
- SqlBulkCopyColumnMappingCollection.cs
- SearchForVirtualItemEventArgs.cs
- StorageComplexPropertyMapping.cs
- StatusBarDrawItemEvent.cs
- BindValidationContext.cs
- PageCodeDomTreeGenerator.cs
- CssStyleCollection.cs
- BackgroundFormatInfo.cs
- GeneratedCodeAttribute.cs
- SimplePropertyEntry.cs
- DictionaryEntry.cs
- CallbackHandler.cs
- SqlProviderServices.cs
- ValueProviderWrapper.cs
- TaskDesigner.cs
- ContextMenuService.cs
- ParseNumbers.cs
- FeatureSupport.cs
- SelectionEditingBehavior.cs
- ListView.cs
- IdentitySection.cs
- AbandonedMutexException.cs
- Misc.cs
- TextSimpleMarkerProperties.cs
- DecryptedHeader.cs
- NonSerializedAttribute.cs
- IndentTextWriter.cs
- XmlDataSourceNodeDescriptor.cs
- Operators.cs
- TextTreeTextNode.cs
- HandlerMappingMemo.cs
- Bezier.cs
- InternalDispatchObject.cs
- OdbcConnectionHandle.cs
- Visual3D.cs
- XmlCodeExporter.cs
- IPGlobalProperties.cs
- NonSerializedAttribute.cs
- SectionXmlInfo.cs
- VerificationException.cs
- BufferedGraphicsManager.cs
- CachedResourceDictionaryExtension.cs
- GroupBox.cs
- FieldNameLookup.cs
- ConfigurationManager.cs
- MapPathBasedVirtualPathProvider.cs