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
- BaseUriHelper.cs
- dataprotectionpermissionattribute.cs
- UInt32Storage.cs
- ProtocolsConfiguration.cs
- StorageSetMapping.cs
- NumberFormatInfo.cs
- Margins.cs
- MessageFilter.cs
- AxisAngleRotation3D.cs
- DataViewSettingCollection.cs
- FileDialogCustomPlacesCollection.cs
- XmlSchemaAttributeGroup.cs
- CssClassPropertyAttribute.cs
- LicenseContext.cs
- KnownTypes.cs
- FlowDocumentPage.cs
- ListGeneralPage.cs
- Calendar.cs
- DrawingDrawingContext.cs
- CodeIdentifiers.cs
- OleDbTransaction.cs
- RtfControlWordInfo.cs
- _ListenerAsyncResult.cs
- WebServiceReceiveDesigner.cs
- ReferenceSchema.cs
- Clause.cs
- _SslSessionsCache.cs
- MachineSettingsSection.cs
- TypeForwardedToAttribute.cs
- ViewValidator.cs
- Run.cs
- ProfileSettingsCollection.cs
- DetailsViewUpdatedEventArgs.cs
- XmlArrayItemAttribute.cs
- Attributes.cs
- RectAnimationUsingKeyFrames.cs
- SQLInt32Storage.cs
- ClientSession.cs
- ProvideValueServiceProvider.cs
- DocumentGridPage.cs
- HMACMD5.cs
- SchemaDeclBase.cs
- validationstate.cs
- CSharpCodeProvider.cs
- ControllableStoryboardAction.cs
- HashStream.cs
- UiaCoreProviderApi.cs
- ErasingStroke.cs
- FileDialogCustomPlacesCollection.cs
- TraceProvider.cs
- ApplicationTrust.cs
- DataViewManager.cs
- TransformPatternIdentifiers.cs
- OrderedHashRepartitionStream.cs
- TdsParserSessionPool.cs
- HtmlValidatorAdapter.cs
- MouseGestureConverter.cs
- TextSimpleMarkerProperties.cs
- AppDomainFactory.cs
- QilLoop.cs
- SystemGatewayIPAddressInformation.cs
- TimeIntervalCollection.cs
- DataSourceControlBuilder.cs
- TextAutomationPeer.cs
- ISCIIEncoding.cs
- FrameworkPropertyMetadata.cs
- CharAnimationBase.cs
- SoapAttributeOverrides.cs
- WindowsFormsSectionHandler.cs
- SynchronizingStream.cs
- TdsParser.cs
- PreviewPageInfo.cs
- HandleCollector.cs
- WebRequestModulesSection.cs
- ContainerControlDesigner.cs
- XmlDownloadManager.cs
- SoapFault.cs
- ISFTagAndGuidCache.cs
- localization.cs
- ObjectDataSourceDisposingEventArgs.cs
- ConnectionManagementElementCollection.cs
- InputBinding.cs
- _SslSessionsCache.cs
- UnsafeNativeMethods.cs
- LongPath.cs
- HuffmanTree.cs
- MaskedTextProvider.cs
- ReflectTypeDescriptionProvider.cs
- XmlDeclaration.cs
- hresults.cs
- SamlSerializer.cs
- URLEditor.cs
- HttpPostLocalhostServerProtocol.cs
- CodeNamespaceImport.cs
- ListViewTableRow.cs
- CollectionContainer.cs
- UInt16.cs
- SafeEventLogWriteHandle.cs
- Image.cs
- SerializationException.cs