Code:
/ FX-1434 / FX-1434 / 1.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
- RuntimeConfig.cs
- MemoryStream.cs
- StringExpressionSet.cs
- EdmItemCollection.cs
- TreeViewImageIndexConverter.cs
- ellipse.cs
- WpfWebRequestHelper.cs
- RecordConverter.cs
- DBCommandBuilder.cs
- AppDomainAttributes.cs
- IssuanceLicense.cs
- UIElementParaClient.cs
- XPathParser.cs
- ErrorWebPart.cs
- SimpleBitVector32.cs
- SQLResource.cs
- AdobeCFFWrapper.cs
- HttpDictionary.cs
- BaseComponentEditor.cs
- RequestQueryProcessor.cs
- EmissiveMaterial.cs
- ImageCollectionEditor.cs
- PointCollection.cs
- IpcPort.cs
- NotifyParentPropertyAttribute.cs
- BinaryConverter.cs
- versioninfo.cs
- BindingValueChangedEventArgs.cs
- SymbolType.cs
- HtmlControl.cs
- CodeNamespaceImport.cs
- BasicKeyConstraint.cs
- StructuredType.cs
- FileDataSourceCache.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HwndHost.cs
- XamlReader.cs
- SmiGettersStream.cs
- SourceItem.cs
- PathTooLongException.cs
- FormsAuthenticationConfiguration.cs
- GacUtil.cs
- DeobfuscatingStream.cs
- CompositeClientFormatter.cs
- XmlHierarchicalEnumerable.cs
- QilTypeChecker.cs
- SimpleType.cs
- SqlConnectionFactory.cs
- ListViewGroupItemCollection.cs
- SecondaryViewProvider.cs
- DashStyles.cs
- VirtualizingStackPanel.cs
- XmlStringTable.cs
- SiteMapDesignerDataSourceView.cs
- TransformPattern.cs
- Int64Converter.cs
- CollectionViewGroupRoot.cs
- Roles.cs
- ComponentSerializationService.cs
- ExpandButtonVisibilityConverter.cs
- OdbcEnvironment.cs
- BitmapVisualManager.cs
- DefaultTextStore.cs
- Operators.cs
- XmlCollation.cs
- UserControlAutomationPeer.cs
- ToRequest.cs
- MembershipPasswordException.cs
- ValidationSummary.cs
- MobileControlDesigner.cs
- CodeTypeDelegate.cs
- MissingMemberException.cs
- DefaultBindingPropertyAttribute.cs
- NetStream.cs
- FontWeightConverter.cs
- ListItemParagraph.cs
- RadioButton.cs
- NonClientArea.cs
- FrameworkPropertyMetadata.cs
- MethodBuilder.cs
- ShortcutKeysEditor.cs
- MetadataItemSerializer.cs
- AutomationPattern.cs
- ControlBuilder.cs
- MouseOverProperty.cs
- FunctionParameter.cs
- UnsafeNativeMethods.cs
- SoapAttributes.cs
- SerializationEventsCache.cs
- Point4DConverter.cs
- DataGridrowEditEndingEventArgs.cs
- AgileSafeNativeMemoryHandle.cs
- FileUpload.cs
- EntityTransaction.cs
- RSAOAEPKeyExchangeFormatter.cs
- Triplet.cs
- XamlFilter.cs
- WorkflowInvoker.cs
- Asn1IntegerConverter.cs
- SafeProcessHandle.cs