Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SqlAggregateChecker.cs
- PageEventArgs.cs
- DescendantBaseQuery.cs
- DayRenderEvent.cs
- FunctionImportElement.cs
- Literal.cs
- ResourcePool.cs
- DuplicateWaitObjectException.cs
- LinearGradientBrush.cs
- ScriptMethodAttribute.cs
- CodeAssignStatement.cs
- ServiceProviders.cs
- DuplicateWaitObjectException.cs
- log.cs
- Helpers.cs
- TableParaClient.cs
- HttpListenerRequest.cs
- BinaryObjectReader.cs
- LayoutExceptionEventArgs.cs
- GatewayIPAddressInformationCollection.cs
- QuaternionKeyFrameCollection.cs
- ResourcePart.cs
- AutoScrollExpandMessageFilter.cs
- FileChangesMonitor.cs
- XmlSchemaInclude.cs
- GeneratedCodeAttribute.cs
- InputScopeManager.cs
- ToolboxSnapDragDropEventArgs.cs
- DataStreams.cs
- Calendar.cs
- DataRecordInfo.cs
- SurrogateEncoder.cs
- MessagePartDescription.cs
- SmtpNetworkElement.cs
- BooleanToVisibilityConverter.cs
- TextParaClient.cs
- AspNetHostingPermission.cs
- GradientStopCollection.cs
- SelectingProviderEventArgs.cs
- DecoderNLS.cs
- GlobalProxySelection.cs
- LinearGradientBrush.cs
- HashLookup.cs
- MDIControlStrip.cs
- SQLMembershipProvider.cs
- XmlImplementation.cs
- GenericAuthenticationEventArgs.cs
- CallbackWrapper.cs
- Gdiplus.cs
- DataErrorValidationRule.cs
- ResourceBinder.cs
- SyndicationCategory.cs
- PointCollection.cs
- WebPartConnectionsConnectVerb.cs
- DropShadowBitmapEffect.cs
- TabPage.cs
- KeyboardEventArgs.cs
- RowParagraph.cs
- MoveSizeWinEventHandler.cs
- HeaderUtility.cs
- ApplicationServicesHostFactory.cs
- MemberExpressionHelper.cs
- DbLambda.cs
- ListenerConstants.cs
- RectangleHotSpot.cs
- WinFormsUtils.cs
- LinqDataSourceValidationException.cs
- PropertyConverter.cs
- InputMethod.cs
- Misc.cs
- PipeSecurity.cs
- InstanceNotFoundException.cs
- EditingMode.cs
- DaylightTime.cs
- ShaderRenderModeValidation.cs
- CheckBox.cs
- Classification.cs
- CommandField.cs
- XmlDataSourceView.cs
- KeyTimeConverter.cs
- SqlBulkCopy.cs
- ExecutedRoutedEventArgs.cs
- BitmapEffectDrawingContextWalker.cs
- RepeaterCommandEventArgs.cs
- _Rfc2616CacheValidators.cs
- SqlUdtInfo.cs
- DictionaryChange.cs
- FloatUtil.cs
- ExcCanonicalXml.cs
- Error.cs
- SyntaxCheck.cs
- InstanceStoreQueryResult.cs
- LinearGradientBrush.cs
- TableRow.cs
- Pair.cs
- SingleAnimationBase.cs
- XmlEnumAttribute.cs
- CodeTypeDeclarationCollection.cs
- VScrollBar.cs
- MetabaseServerConfig.cs