Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContentType.cs
- SelectionPattern.cs
- SqlBulkCopyColumnMapping.cs
- LinkLabelLinkClickedEvent.cs
- COM2ExtendedTypeConverter.cs
- Page.cs
- HostedElements.cs
- EventMappingSettingsCollection.cs
- dbenumerator.cs
- HttpCapabilitiesSectionHandler.cs
- XmlSecureResolver.cs
- WebPartEditorApplyVerb.cs
- _SSPISessionCache.cs
- sqlstateclientmanager.cs
- SHA512Managed.cs
- FlowDocumentPage.cs
- CompensatableTransactionScopeActivityDesigner.cs
- SignedXml.cs
- DbParameterCollectionHelper.cs
- XmlDomTextWriter.cs
- ClosableStream.cs
- RegistryExceptionHelper.cs
- MatrixTransform3D.cs
- ListBox.cs
- CodeExpressionCollection.cs
- BitmapCache.cs
- HtmlListAdapter.cs
- ProviderUtil.cs
- ConfigXmlComment.cs
- ReadOnlyHierarchicalDataSource.cs
- DataGridViewCellValidatingEventArgs.cs
- MethodCallTranslator.cs
- BaseTreeIterator.cs
- ProxyFragment.cs
- ParserOptions.cs
- Point3DCollectionConverter.cs
- ButtonBaseAutomationPeer.cs
- LoginView.cs
- NegotiationTokenAuthenticatorState.cs
- PreviewPrintController.cs
- compensatingcollection.cs
- MetadataPropertyvalue.cs
- Token.cs
- FixedPageStructure.cs
- GeneratedContractType.cs
- JumpPath.cs
- DebugView.cs
- XmlCompatibilityReader.cs
- XmlHierarchyData.cs
- FilteredXmlReader.cs
- PostBackTrigger.cs
- FilteredReadOnlyMetadataCollection.cs
- DelegateBodyWriter.cs
- TextRangeBase.cs
- PeerNameRecordCollection.cs
- RuntimeHelpers.cs
- DataGridCell.cs
- EtwTrace.cs
- XmlSchemaComplexContentRestriction.cs
- WebPartDescription.cs
- counter.cs
- SpecularMaterial.cs
- remotingproxy.cs
- ContentDesigner.cs
- Types.cs
- KeyValueInternalCollection.cs
- LinkLabelLinkClickedEvent.cs
- Proxy.cs
- ErrorEventArgs.cs
- DataBinder.cs
- WebPartHelpVerb.cs
- RegistryKey.cs
- EncryptedKeyIdentifierClause.cs
- AssemblyCache.cs
- BufferModeSettings.cs
- LogConverter.cs
- EnumValAlphaComparer.cs
- HttpResponse.cs
- ServiceAuthorizationManager.cs
- WebPartHeaderCloseVerb.cs
- FixedBufferAttribute.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HttpModuleAction.cs
- X509SubjectKeyIdentifierClause.cs
- XmlAtomicValue.cs
- ProbeMatchesApril2005.cs
- GridViewCommandEventArgs.cs
- IgnorePropertiesAttribute.cs
- LogWriteRestartAreaAsyncResult.cs
- UICuesEvent.cs
- CalendarButton.cs
- EntityDataReader.cs
- DbDataReader.cs
- DesigntimeLicenseContext.cs
- Trustee.cs
- CacheOutputQuery.cs
- Grid.cs
- XmlSortKeyAccumulator.cs
- MetadataItemEmitter.cs
- CompilerGlobalScopeAttribute.cs