Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // // ==--== // // 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbProviderFactoriesConfigurationHandler.cs
- SelectedCellsCollection.cs
- CustomAttributeFormatException.cs
- EntityCollection.cs
- DatasetMethodGenerator.cs
- SequenceFullException.cs
- DigestTraceRecordHelper.cs
- XamlTypeMapper.cs
- DataGridViewRowStateChangedEventArgs.cs
- ObjectItemNoOpAssemblyLoader.cs
- XmlSchemaInclude.cs
- sapiproxy.cs
- Literal.cs
- XsltLibrary.cs
- DiscoveryClientReferences.cs
- XmlNodeChangedEventArgs.cs
- BreakRecordTable.cs
- ValidationEventArgs.cs
- XPathMultyIterator.cs
- HandleTable.cs
- MimeBasePart.cs
- CompilerGeneratedAttribute.cs
- ConnectionPointCookie.cs
- EntityDataSourceWrapperCollection.cs
- PresentationSource.cs
- LocatorGroup.cs
- InvalidOperationException.cs
- IndicShape.cs
- CannotUnloadAppDomainException.cs
- ExceptionHandlersDesigner.cs
- HashCryptoHandle.cs
- PopOutPanel.cs
- CommandManager.cs
- MarkedHighlightComponent.cs
- ConfigXmlWhitespace.cs
- CodeIdentifiers.cs
- DataGridBoundColumn.cs
- MergePropertyDescriptor.cs
- QueryCacheKey.cs
- ObjectDataSource.cs
- TrustLevelCollection.cs
- DocumentReference.cs
- FixedSOMElement.cs
- InvalidPrinterException.cs
- COAUTHINFO.cs
- PeerTransportSecuritySettings.cs
- IISMapPath.cs
- Substitution.cs
- DecimalConverter.cs
- XsdValidatingReader.cs
- MessageQueuePermission.cs
- VoiceSynthesis.cs
- LeaseManager.cs
- ResourceProviderFactory.cs
- PropertyInformation.cs
- ReadWriteObjectLock.cs
- ConfigurationPermission.cs
- StylusPointDescription.cs
- Dynamic.cs
- ClusterRegistryConfigurationProvider.cs
- SerializationHelper.cs
- Evidence.cs
- IgnoreSectionHandler.cs
- PackagePartCollection.cs
- ReferenceTypeElement.cs
- RestHandlerFactory.cs
- UTF7Encoding.cs
- odbcmetadatacollectionnames.cs
- DependencyPropertyValueSerializer.cs
- Pair.cs
- ViewRendering.cs
- GeneralTransform3DCollection.cs
- DecoderExceptionFallback.cs
- IIS7WorkerRequest.cs
- XmlSchemaSimpleTypeList.cs
- Emitter.cs
- SecurityChannelFactory.cs
- ListControlDataBindingHandler.cs
- SoapFormatExtensions.cs
- ErrorStyle.cs
- IdentityModelStringsVersion1.cs
- CrossContextChannel.cs
- EqualityComparer.cs
- ButtonBase.cs
- UriScheme.cs
- IconConverter.cs
- IOException.cs
- NativeMethods.cs
- BookmarkInfo.cs
- DBDataPermissionAttribute.cs
- BinaryNegotiation.cs
- DrawingGroupDrawingContext.cs
- ToolStripCustomTypeDescriptor.cs
- MetabaseSettings.cs
- StylusLogic.cs
- GatewayIPAddressInformationCollection.cs
- DataObjectFieldAttribute.cs
- StylusPoint.cs
- WebPartExportVerb.cs
- TreeViewCancelEvent.cs