Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / AbandonedMutexException.cs / 1305376 / 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; } [System.Security.SecuritySafeCritical] // auto-generated 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
- IDataContractSurrogate.cs
- HoistedLocals.cs
- SqlTriggerAttribute.cs
- LogicalTreeHelper.cs
- XmlObjectSerializerReadContextComplex.cs
- WebPartTransformerAttribute.cs
- DBSchemaRow.cs
- EDesignUtil.cs
- WindowsScroll.cs
- MethodImplAttribute.cs
- ProfileInfo.cs
- EvidenceBase.cs
- SharedStatics.cs
- TdsParameterSetter.cs
- ReflectionServiceProvider.cs
- LinqDataSourceHelper.cs
- _ShellExpression.cs
- MenuAdapter.cs
- IntranetCredentialPolicy.cs
- UnknownBitmapEncoder.cs
- WsdlParser.cs
- FormParameter.cs
- HMACRIPEMD160.cs
- PenContexts.cs
- HttpNamespaceReservationInstallComponent.cs
- Propagator.cs
- ServicesUtilities.cs
- Pkcs9Attribute.cs
- CheckBoxRenderer.cs
- EditorPartChrome.cs
- ModelService.cs
- SByteConverter.cs
- RequestCacheManager.cs
- XmlBindingWorker.cs
- ModifierKeysValueSerializer.cs
- XmlSerializer.cs
- Ray3DHitTestResult.cs
- TraceProvider.cs
- SoapBinding.cs
- SwitchAttribute.cs
- VirtualPathUtility.cs
- PolicyLevel.cs
- CookieParameter.cs
- GridItemCollection.cs
- StateMachine.cs
- SortQuery.cs
- DateTimeSerializationSection.cs
- UrlAuthFailedErrorFormatter.cs
- AutomationPropertyInfo.cs
- QueryOutputWriter.cs
- ProtocolsConfigurationHandler.cs
- CompositionAdorner.cs
- SQLBoolean.cs
- SoapInteropTypes.cs
- ClientSettingsProvider.cs
- WebServiceReceive.cs
- RecordBuilder.cs
- ColorDialog.cs
- PackageDigitalSignature.cs
- XmlSchemaInferenceException.cs
- XmlSchemaImporter.cs
- CreatingCookieEventArgs.cs
- UnsafePeerToPeerMethods.cs
- ObsoleteAttribute.cs
- FaultContractInfo.cs
- HtmlInputImage.cs
- FocusWithinProperty.cs
- dbdatarecord.cs
- ChangeDirector.cs
- HttpClientCertificate.cs
- WebControl.cs
- DataService.cs
- XmlHierarchicalDataSourceView.cs
- JsonSerializer.cs
- RadioButton.cs
- PanelStyle.cs
- TextFindEngine.cs
- DynamicDataResources.Designer.cs
- CompositeControl.cs
- _OSSOCK.cs
- EntityKeyElement.cs
- ExpressionBuilderCollection.cs
- FolderNameEditor.cs
- WindowsTab.cs
- MD5.cs
- LocalizationComments.cs
- DiscoveryClientProtocol.cs
- IntegerValidator.cs
- ToolZone.cs
- FixedBufferAttribute.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- RtType.cs
- SqlDataSource.cs
- CapabilitiesUse.cs
- XmlStringTable.cs
- BlobPersonalizationState.cs
- UpDownBase.cs
- DoubleStorage.cs
- sqlser.cs
- CultureInfoConverter.cs