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
- TextPattern.cs
- QilLoop.cs
- FlatButtonAppearance.cs
- PTConverter.cs
- MatrixCamera.cs
- SkipStoryboardToFill.cs
- DataGridViewCellCollection.cs
- IdentityManager.cs
- ExchangeUtilities.cs
- XsltContext.cs
- SessionStateUtil.cs
- TransformerInfoCollection.cs
- safex509handles.cs
- InheritanceAttribute.cs
- TaskbarItemInfo.cs
- MailAddress.cs
- ReaderContextStackData.cs
- InvokeHandlers.cs
- HtmlHead.cs
- IdentityReference.cs
- SqlMethodTransformer.cs
- ResumeStoryboard.cs
- Pick.cs
- LongTypeConverter.cs
- Duration.cs
- HandleCollector.cs
- StatusBarItem.cs
- ContextQuery.cs
- XmlNotation.cs
- OperatingSystemVersionCheck.cs
- ProjectionCamera.cs
- DiscoveryInnerClientAdhocCD1.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewTextBoxCell.cs
- Geometry3D.cs
- FilterException.cs
- PrtTicket_Base.cs
- StylusPointProperties.cs
- WebPartMenu.cs
- SmiEventStream.cs
- LineServicesCallbacks.cs
- NumericUpDownAccelerationCollection.cs
- DocumentGridContextMenu.cs
- PrintPageEvent.cs
- sqlinternaltransaction.cs
- SmtpLoginAuthenticationModule.cs
- SqlFlattener.cs
- TriggerBase.cs
- CqlBlock.cs
- AuthenticatedStream.cs
- COM2ExtendedUITypeEditor.cs
- IdnMapping.cs
- cryptoapiTransform.cs
- ISAPIRuntime.cs
- HostingEnvironmentException.cs
- ToolTipAutomationPeer.cs
- FontConverter.cs
- SpoolingTask.cs
- ApplicationHost.cs
- WebEvents.cs
- EntitySetBase.cs
- ProviderUtil.cs
- Span.cs
- Matrix3DConverter.cs
- StringSorter.cs
- CompModSwitches.cs
- FileAuthorizationModule.cs
- PackagePart.cs
- TrackingMemoryStreamFactory.cs
- TimersDescriptionAttribute.cs
- WinHttpWebProxyFinder.cs
- JournalNavigationScope.cs
- Html32TextWriter.cs
- CodeTypeDeclarationCollection.cs
- PageScaling.cs
- WebResourceAttribute.cs
- DataServiceBuildProvider.cs
- IndexedSelectQueryOperator.cs
- AutomationAttributeInfo.cs
- DetailsViewModeEventArgs.cs
- HotSpot.cs
- ProtocolViolationException.cs
- QuadraticBezierSegment.cs
- DLinqTableProvider.cs
- Util.cs
- DataGridViewComboBoxColumn.cs
- BamlTreeUpdater.cs
- RtType.cs
- ScopelessEnumAttribute.cs
- WebRequest.cs
- XamlFilter.cs
- BulletedListDesigner.cs
- NonBatchDirectoryCompiler.cs
- xmlformatgeneratorstatics.cs
- CodeEntryPointMethod.cs
- IISMapPath.cs
- VirtualPath.cs
- SamlAuthenticationStatement.cs
- OrderedDictionaryStateHelper.cs
- SystemDropShadowChrome.cs