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
- TextWriter.cs
- ApplicationServiceHelper.cs
- GroupBox.cs
- TemplatePropertyEntry.cs
- LinqDataSourceContextEventArgs.cs
- UnionCqlBlock.cs
- CalendarSelectionChangedEventArgs.cs
- ResourceReader.cs
- SamlSubjectStatement.cs
- CDSsyncETWBCLProvider.cs
- UpDownEvent.cs
- Journal.cs
- OlePropertyStructs.cs
- CollectionViewGroupInternal.cs
- DbTransaction.cs
- HtmlForm.cs
- StructuralCache.cs
- ControlBuilder.cs
- CategoryState.cs
- MenuTracker.cs
- EncryptedReference.cs
- BrowserInteropHelper.cs
- CodeSnippetTypeMember.cs
- UnsafeNativeMethods.cs
- _AcceptOverlappedAsyncResult.cs
- TextServicesDisplayAttribute.cs
- ReferentialConstraint.cs
- OleDbConnectionFactory.cs
- DataGridViewCellParsingEventArgs.cs
- BuildProvidersCompiler.cs
- CodeChecksumPragma.cs
- EntryPointNotFoundException.cs
- PathStreamGeometryContext.cs
- XmlQueryCardinality.cs
- CommandEventArgs.cs
- ActivityXamlServices.cs
- AdCreatedEventArgs.cs
- XComponentModel.cs
- ManagedIStream.cs
- DataRowExtensions.cs
- LongAverageAggregationOperator.cs
- ThreadSafeList.cs
- PrePrepareMethodAttribute.cs
- ProtocolProfile.cs
- WaveHeader.cs
- UrlParameterReader.cs
- TransformedBitmap.cs
- XmlDataSourceView.cs
- DetailsViewRow.cs
- ZeroOpNode.cs
- ModuleConfigurationInfo.cs
- StoreAnnotationsMap.cs
- EmptyStringExpandableObjectConverter.cs
- ObjectQueryState.cs
- StateBag.cs
- TypedTableBase.cs
- UrlAuthFailedErrorFormatter.cs
- LinearQuaternionKeyFrame.cs
- HashAlgorithm.cs
- ZipIOLocalFileBlock.cs
- Point4DValueSerializer.cs
- PixelShader.cs
- Int64.cs
- AdornerPresentationContext.cs
- RenderCapability.cs
- MachineKeySection.cs
- AutomationElementCollection.cs
- SingletonInstanceContextProvider.cs
- ProgressBar.cs
- Double.cs
- Span.cs
- ContractsBCL.cs
- HtmlInputText.cs
- WaveHeader.cs
- SplitContainerDesigner.cs
- ValidationRule.cs
- TextEndOfSegment.cs
- ISO2022Encoding.cs
- OdbcStatementHandle.cs
- DrawToolTipEventArgs.cs
- PartitionedStreamMerger.cs
- PolicyUnit.cs
- ArglessEventHandlerProxy.cs
- PartialArray.cs
- DeadCharTextComposition.cs
- XmlSchemaAnyAttribute.cs
- SecurityException.cs
- RegexWriter.cs
- BindingSource.cs
- ParameterInfo.cs
- SecurityRuntime.cs
- GridViewColumnHeader.cs
- NavigatorOutput.cs
- CollectionTraceRecord.cs
- EpmCustomContentSerializer.cs
- XmlElement.cs
- SecurityPermission.cs
- WebHttpElement.cs
- RawAppCommandInputReport.cs
- SerializationInfo.cs