Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TaiwanCalendar.cs
- ConfigurationSection.cs
- HttpCachePolicyWrapper.cs
- TextServicesDisplayAttribute.cs
- SerializationEventsCache.cs
- DBPropSet.cs
- ObjectSelectorEditor.cs
- RelationshipManager.cs
- Transform3D.cs
- FileSecurity.cs
- FamilyMapCollection.cs
- RegexGroup.cs
- EventEntry.cs
- HashMembershipCondition.cs
- TextEffectResolver.cs
- StateDesigner.Helpers.cs
- DataComponentGenerator.cs
- AllMembershipCondition.cs
- xamlnodes.cs
- ImageFormatConverter.cs
- CookieProtection.cs
- ItemMap.cs
- WarningException.cs
- ListMarkerSourceInfo.cs
- ObjectViewFactory.cs
- OdbcStatementHandle.cs
- DbMetaDataFactory.cs
- ISAPIApplicationHost.cs
- Bezier.cs
- ObjectToken.cs
- CompressedStack.cs
- ToolboxBitmapAttribute.cs
- InvalidateEvent.cs
- ListViewTableCell.cs
- MultipartContentParser.cs
- MetaModel.cs
- XmlParser.cs
- SchemaInfo.cs
- NotCondition.cs
- XmlException.cs
- PersianCalendar.cs
- ObjectDataSourceView.cs
- XmlDictionaryReader.cs
- CollaborationHelperFunctions.cs
- ClonableStack.cs
- XamlGridLengthSerializer.cs
- ToolStrip.cs
- ChtmlTextWriter.cs
- TypeConverterAttribute.cs
- DynamicEndpoint.cs
- ExceptionCollection.cs
- SqlClientMetaDataCollectionNames.cs
- FloatSumAggregationOperator.cs
- DependencyPropertyValueSerializer.cs
- ObjectPersistData.cs
- WindowsListViewItemStartMenu.cs
- UriTemplateDispatchFormatter.cs
- BitmapEffectGeneralTransform.cs
- DependencyPropertyConverter.cs
- dataobject.cs
- DoubleCollectionConverter.cs
- HttpListenerResponse.cs
- TextHintingModeValidation.cs
- InstanceOwnerException.cs
- DBProviderConfigurationHandler.cs
- OracleRowUpdatedEventArgs.cs
- EncoderParameter.cs
- ToolStripItemImageRenderEventArgs.cs
- CFGGrammar.cs
- FunctionDefinition.cs
- DesignerVerbToolStripMenuItem.cs
- ItemList.cs
- TypeBuilder.cs
- WindowsUpDown.cs
- FormView.cs
- XmlWrappingReader.cs
- ContentPresenter.cs
- AspNetHostingPermission.cs
- FirstMatchCodeGroup.cs
- HelpPage.cs
- XmlSchemaInclude.cs
- NetworkInterface.cs
- CompiledXpathExpr.cs
- MSAAEventDispatcher.cs
- ByeMessageCD1.cs
- DocobjHost.cs
- QueueProcessor.cs
- EventLogWatcher.cs
- PreservationFileReader.cs
- BitmapEffectCollection.cs
- EntityDataSourceChangedEventArgs.cs
- StateItem.cs
- EncodingDataItem.cs
- XmlValidatingReader.cs
- SimpleType.cs
- DecimalConverter.cs
- PropertyGeneratedEventArgs.cs
- InputLanguage.cs
- ActivityTypeDesigner.xaml.cs
- PeerTransportListenAddressConverter.cs