Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DropDownList.cs
- SkewTransform.cs
- TriggerCollection.cs
- XmlAtomicValue.cs
- DbTransaction.cs
- wgx_commands.cs
- AnnouncementEndpoint.cs
- Vector3D.cs
- XsltLoader.cs
- LocalizableAttribute.cs
- WindowHideOrCloseTracker.cs
- ErrorInfoXmlDocument.cs
- BooleanToVisibilityConverter.cs
- AssemblyAttributesGoHere.cs
- DataSourceSelectArguments.cs
- LinqDataSourceView.cs
- Int16Converter.cs
- XmlSchemaAnnotation.cs
- OutOfProcStateClientManager.cs
- BindingNavigator.cs
- ConfigurationFileMap.cs
- DataAccessor.cs
- ShaderEffect.cs
- Win32Exception.cs
- Perspective.cs
- Constraint.cs
- TagPrefixAttribute.cs
- FixedFlowMap.cs
- TextBox.cs
- EventDrivenDesigner.cs
- InputScopeConverter.cs
- FormsAuthentication.cs
- PointConverter.cs
- ColorEditor.cs
- ProcessRequestArgs.cs
- SqlCacheDependencySection.cs
- PageAdapter.cs
- HandlerBase.cs
- SqlReferenceCollection.cs
- MethodBuilder.cs
- DirectoryInfo.cs
- TransformGroup.cs
- DataSvcMapFile.cs
- XmlSchemaInferenceException.cs
- DataGridViewToolTip.cs
- IPipelineRuntime.cs
- UnsafeNativeMethods.cs
- QueryCacheManager.cs
- DataServiceQueryContinuation.cs
- OlePropertyStructs.cs
- ValidatingPropertiesEventArgs.cs
- PropertyValueChangedEvent.cs
- HwndProxyElementProvider.cs
- SchemaType.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- FreezableOperations.cs
- StackOverflowException.cs
- Semaphore.cs
- Win32MouseDevice.cs
- IDReferencePropertyAttribute.cs
- Label.cs
- TextParagraphProperties.cs
- ScriptDescriptor.cs
- FocusTracker.cs
- TreeViewImageGenerator.cs
- TypeConverters.cs
- Number.cs
- OdbcConnectionStringbuilder.cs
- ListComponentEditorPage.cs
- UnionCqlBlock.cs
- XmlNamespaceManager.cs
- AdRotator.cs
- PreviewPrintController.cs
- Error.cs
- EllipseGeometry.cs
- ExpressionEditor.cs
- UIHelper.cs
- PropertyGeneratedEventArgs.cs
- HexParser.cs
- Parsers.cs
- SmiContextFactory.cs
- ExecutedRoutedEventArgs.cs
- RuntimeHandles.cs
- PageHandlerFactory.cs
- GregorianCalendarHelper.cs
- ObjectDataSourceEventArgs.cs
- NameValueCollection.cs
- ListViewInsertEventArgs.cs
- DateTimeSerializationSection.cs
- WinFormsSecurity.cs
- AxImporter.cs
- DashStyles.cs
- BinHexDecoder.cs
- XMLDiffLoader.cs
- AudioFormatConverter.cs
- AdjustableArrowCap.cs
- IBuiltInEvidence.cs
- MethodBuilderInstantiation.cs
- MessagePartDescriptionCollection.cs
- MultilineStringConverter.cs