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
- SymmetricKeyWrap.cs
- SiteMapNode.cs
- Page.cs
- CssClassPropertyAttribute.cs
- ImageListImageEditor.cs
- HttpBrowserCapabilitiesWrapper.cs
- ValidatorCollection.cs
- Dispatcher.cs
- ScrollBarAutomationPeer.cs
- CheckBoxField.cs
- Config.cs
- XmlBinaryReader.cs
- GcSettings.cs
- CertificateManager.cs
- MembershipUser.cs
- TemplatedMailWebEventProvider.cs
- HttpRuntimeSection.cs
- XmlNodeChangedEventArgs.cs
- CurrentChangedEventManager.cs
- WebMessageEncodingElement.cs
- FrameworkElementAutomationPeer.cs
- BulletedListDesigner.cs
- AttributeCollection.cs
- HelpInfo.cs
- Hashtable.cs
- MonitoringDescriptionAttribute.cs
- DataGridViewColumnCollection.cs
- DisplayInformation.cs
- ConvertEvent.cs
- MailBnfHelper.cs
- GeneralTransform2DTo3D.cs
- CultureInfoConverter.cs
- PageResolution.cs
- LoaderAllocator.cs
- DesignRelationCollection.cs
- RegistrySecurity.cs
- ExtendedPropertiesHandler.cs
- mediaclock.cs
- LockCookie.cs
- CodeGen.cs
- DataBoundControlHelper.cs
- ServiceModelConfigurationSection.cs
- WebBrowserNavigatingEventHandler.cs
- TemplateBindingExpression.cs
- DictionaryManager.cs
- RuleSetBrowserDialog.cs
- AutomationFocusChangedEventArgs.cs
- WorkflowInstanceProvider.cs
- ProcessManager.cs
- EdmValidator.cs
- HttpProfileBase.cs
- InstanceDataCollectionCollection.cs
- ellipse.cs
- RecordManager.cs
- GeometryHitTestParameters.cs
- PropertyDescriptorComparer.cs
- BulletChrome.cs
- InheritanceAttribute.cs
- ApplicationSecurityInfo.cs
- ComboBoxItem.cs
- CommonRemoteMemoryBlock.cs
- DependencyPropertyChangedEventArgs.cs
- ThrowOnMultipleAssignment.cs
- FragmentNavigationEventArgs.cs
- BindingContext.cs
- StringFunctions.cs
- EntityContainerEmitter.cs
- BuildProvider.cs
- SmiEventSink_DeferedProcessing.cs
- AlignmentYValidation.cs
- WinFormsSpinner.cs
- LinqMaximalSubtreeNominator.cs
- X509WindowsSecurityToken.cs
- TableTextElementCollectionInternal.cs
- XmlSchemaCompilationSettings.cs
- ChangeConflicts.cs
- HandoffBehavior.cs
- Int16.cs
- BamlRecordWriter.cs
- SQLMoneyStorage.cs
- DateTimeAutomationPeer.cs
- ListBox.cs
- XmlAttributeProperties.cs
- EntryWrittenEventArgs.cs
- SchemaImporterExtensionElement.cs
- WindowsGraphicsCacheManager.cs
- CreateRefExpr.cs
- MatrixCamera.cs
- SpanIndex.cs
- FontNamesConverter.cs
- NullRuntimeConfig.cs
- ModifierKeysValueSerializer.cs
- TakeOrSkipWhileQueryOperator.cs
- CellRelation.cs
- DefaultExpression.cs
- PersistencePipeline.cs
- MailWebEventProvider.cs
- MembershipPasswordException.cs
- SQLDoubleStorage.cs
- DataPointer.cs