Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- VectorCollectionConverter.cs
- HttpBrowserCapabilitiesBase.cs
- SpellerInterop.cs
- TimeSpanSecondsConverter.cs
- InheritanceAttribute.cs
- NodeFunctions.cs
- FrameworkContentElement.cs
- ComAdminInterfaces.cs
- MessageQueueTransaction.cs
- NullableLongMinMaxAggregationOperator.cs
- LayoutDump.cs
- ExternalException.cs
- SingleKeyFrameCollection.cs
- DbDataRecord.cs
- AuthenticationServiceManager.cs
- AndCondition.cs
- ColumnReorderedEventArgs.cs
- Task.cs
- ResourcesChangeInfo.cs
- OdbcStatementHandle.cs
- RolePrincipal.cs
- SettingsSavedEventArgs.cs
- InternalConfigSettingsFactory.cs
- WindowsToolbar.cs
- ConnectionsZone.cs
- GlyphingCache.cs
- PresentationAppDomainManager.cs
- LineBreakRecord.cs
- ListViewEditEventArgs.cs
- PauseStoryboard.cs
- AppDomainInfo.cs
- DbTransaction.cs
- WindowsTitleBar.cs
- ReadOnlyDictionary.cs
- DataGridViewRowCancelEventArgs.cs
- RightsManagementManager.cs
- WpfKnownMember.cs
- PickDesigner.xaml.cs
- ProfileServiceManager.cs
- SQLStringStorage.cs
- MultiView.cs
- DesigntimeLicenseContextSerializer.cs
- FrameworkContentElementAutomationPeer.cs
- PeoplePickerWrapper.cs
- TimeSpanOrInfiniteValidator.cs
- TraceSection.cs
- MouseEventArgs.cs
- Vector3D.cs
- TemplateControlParser.cs
- TabPage.cs
- PrePostDescendentsWalker.cs
- DrawListViewItemEventArgs.cs
- MappingException.cs
- SizeLimitedCache.cs
- Asn1Utilities.cs
- BitmapEffectGeneralTransform.cs
- XmlDocumentFragment.cs
- autovalidator.cs
- GroupBox.cs
- Axis.cs
- SwitchCase.cs
- StrokeNodeOperations.cs
- MyContact.cs
- MenuItem.cs
- SessionEndingEventArgs.cs
- SqlTriggerAttribute.cs
- FilteredXmlReader.cs
- SchemaNotation.cs
- ScrollPatternIdentifiers.cs
- MetadataCache.cs
- SpoolingTask.cs
- UdpDiscoveryEndpointProvider.cs
- OuterGlowBitmapEffect.cs
- Dictionary.cs
- future.cs
- Int16.cs
- ModuleConfigurationInfo.cs
- HttpDateParse.cs
- MarkupCompiler.cs
- WebSysDefaultValueAttribute.cs
- ConfigsHelper.cs
- ConsumerConnectionPointCollection.cs
- EtwTrackingParticipant.cs
- LoginDesigner.cs
- GenericAuthenticationEventArgs.cs
- WmlMobileTextWriter.cs
- ProfileModule.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- xml.cs
- EventMap.cs
- EventWaitHandle.cs
- CompressedStack.cs
- shaperfactoryquerycacheentry.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- InfocardExtendedInformationCollection.cs
- CharEnumerator.cs
- BreakRecordTable.cs
- CookielessHelper.cs
- HtmlToClrEventProxy.cs
- FieldDescriptor.cs