Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColumnMapProcessor.cs
- TextBlock.cs
- RelationshipConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- EraserBehavior.cs
- WorkflowRuntimeBehavior.cs
- VisualStyleTypesAndProperties.cs
- DeferredSelectedIndexReference.cs
- TrackingWorkflowEventArgs.cs
- TrackingProfileSerializer.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- Int32RectValueSerializer.cs
- HttpInputStream.cs
- RadioButtonList.cs
- XamlSerializer.cs
- HtmlValidationSummaryAdapter.cs
- OpCodes.cs
- Misc.cs
- RightsManagementInformation.cs
- SchemaComplexType.cs
- PageFunction.cs
- TrustSection.cs
- SafeEventLogWriteHandle.cs
- WaitHandleCannotBeOpenedException.cs
- RelatedPropertyManager.cs
- CodeBinaryOperatorExpression.cs
- EventLevel.cs
- TTSEngineTypes.cs
- DocumentViewerAutomationPeer.cs
- ValueUtilsSmi.cs
- DefaultCommandConverter.cs
- NavigationHelper.cs
- WebPartTransformerAttribute.cs
- TextEditorParagraphs.cs
- Encoder.cs
- SequentialUshortCollection.cs
- LexicalChunk.cs
- ProgressiveCrcCalculatingStream.cs
- TextSelectionHighlightLayer.cs
- DetailsViewUpdatedEventArgs.cs
- PanelStyle.cs
- URLMembershipCondition.cs
- Logging.cs
- Color.cs
- cookiecollection.cs
- ExtendedProtectionPolicyTypeConverter.cs
- TextFormatterHost.cs
- TransportationConfigurationTypeInstallComponent.cs
- SystemResources.cs
- ProcessHostFactoryHelper.cs
- SingleAnimationBase.cs
- PageRequestManager.cs
- Decimal.cs
- ImageSource.cs
- MetafileHeaderWmf.cs
- Bits.cs
- FullTrustAssembliesSection.cs
- Binding.cs
- ByteStack.cs
- DataGridTablesFactory.cs
- ThreadAttributes.cs
- BitmapEffectInputConnector.cs
- LocalizableResourceBuilder.cs
- KeyFrames.cs
- FileCodeGroup.cs
- StorageRoot.cs
- IgnoreSectionHandler.cs
- CatalogPartChrome.cs
- StorageScalarPropertyMapping.cs
- MailMessageEventArgs.cs
- WorkflowInstance.cs
- GroupBoxRenderer.cs
- SecondaryIndexList.cs
- SecurityChannel.cs
- PenThreadWorker.cs
- AutoResizedEvent.cs
- FocusChangedEventArgs.cs
- Tuple.cs
- MarkupExtensionSerializer.cs
- SourceFileBuildProvider.cs
- SerializationStore.cs
- Policy.cs
- CodeConditionStatement.cs
- ValidatingCollection.cs
- CompositeActivityDesigner.cs
- EventLogPermissionAttribute.cs
- DataGridViewCellValidatingEventArgs.cs
- RecordManager.cs
- MonthCalendar.cs
- UpdateExpressionVisitor.cs
- SqlUdtInfo.cs
- Expressions.cs
- GeneralTransformCollection.cs
- ObjectSelectorEditor.cs
- TextTreeNode.cs
- WebPartsPersonalization.cs
- DocumentsTrace.cs
- PrefixQName.cs
- PackageProperties.cs
- MoveSizeWinEventHandler.cs