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
- InlineCategoriesDocument.cs
- LateBoundChannelParameterCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Confirm.cs
- ModuleConfigurationInfo.cs
- XmlUtil.cs
- WindowsStartMenu.cs
- ListViewItem.cs
- DefaultValueTypeConverter.cs
- GlyphShapingProperties.cs
- WebPartManagerInternals.cs
- XamlFigureLengthSerializer.cs
- SMSvcHost.cs
- ReadOnlyCollection.cs
- IndexOutOfRangeException.cs
- XmlnsCompatibleWithAttribute.cs
- TraceHandlerErrorFormatter.cs
- DataComponentMethodGenerator.cs
- InkCanvas.cs
- WmfPlaceableFileHeader.cs
- AdRotator.cs
- WorkflowMessageEventArgs.cs
- XamlWriter.cs
- EntityParameterCollection.cs
- AmbientProperties.cs
- DataShape.cs
- WindowsListViewGroup.cs
- ScalarType.cs
- ToolStripDesignerAvailabilityAttribute.cs
- XPathBinder.cs
- MeasureData.cs
- XhtmlCssHandler.cs
- GrammarBuilderBase.cs
- NameTable.cs
- ValidationResult.cs
- ProcessModelInfo.cs
- MatrixCamera.cs
- AppDomainUnloadedException.cs
- SafeMemoryMappedViewHandle.cs
- PointLight.cs
- UserControl.cs
- PngBitmapDecoder.cs
- PropertyToken.cs
- GridViewDeletedEventArgs.cs
- ImageDrawing.cs
- DataSetFieldSchema.cs
- CodeTypeDeclarationCollection.cs
- WindowsScrollBarBits.cs
- ViewRendering.cs
- EntityDataSourceView.cs
- CodeNamespaceImport.cs
- ClientConfigPaths.cs
- TransformGroup.cs
- FormViewUpdatedEventArgs.cs
- DefaultHttpHandler.cs
- AdapterUtil.cs
- ScriptComponentDescriptor.cs
- SHA384Managed.cs
- SqlMethodAttribute.cs
- Emitter.cs
- ConsumerConnectionPoint.cs
- GeneratedView.cs
- QuaternionKeyFrameCollection.cs
- XsltFunctions.cs
- ConnectionStringsExpressionBuilder.cs
- XslCompiledTransform.cs
- FontUnit.cs
- StrokeSerializer.cs
- DelegatingStream.cs
- LayeredChannelListener.cs
- SmtpClient.cs
- BindingNavigator.cs
- RightsManagementEncryptedStream.cs
- InheritanceAttribute.cs
- XpsFilter.cs
- EmptyCollection.cs
- HitTestDrawingContextWalker.cs
- CodePageUtils.cs
- BufferedWebEventProvider.cs
- DBDataPermission.cs
- DivideByZeroException.cs
- ClientOptions.cs
- TypeConverterValueSerializer.cs
- WebControlAdapter.cs
- NominalTypeEliminator.cs
- TraceEventCache.cs
- PauseStoryboard.cs
- BasicCellRelation.cs
- BinaryCommonClasses.cs
- InputBuffer.cs
- XmlDomTextWriter.cs
- TableCellsCollectionEditor.cs
- HandoffBehavior.cs
- ZoneLinkButton.cs
- NotifyCollectionChangedEventArgs.cs
- IssuanceLicense.cs
- webbrowsersite.cs
- StatusBarItem.cs
- XXXInfos.cs
- PassportAuthenticationModule.cs