Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Threading / SynchronizationLockException.cs / 1 / SynchronizationLockException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: SynchronizationLockException
**
**
** Purpose: Wait(), Notify() or NotifyAll() was called from an unsynchronized
** block of code.
**
**
=============================================================================*/
namespace System.Threading {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class SynchronizationLockException : SystemException {
public SynchronizationLockException()
: base(Environment.GetResourceString("Arg_SynchronizationLockException")) {
SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
}
public SynchronizationLockException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
}
public SynchronizationLockException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
}
protected SynchronizationLockException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: SynchronizationLockException
**
**
** Purpose: Wait(), Notify() or NotifyAll() was called from an unsynchronized
** block of code.
**
**
=============================================================================*/
namespace System.Threading {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()] public class SynchronizationLockException : SystemException {
public SynchronizationLockException()
: base(Environment.GetResourceString("Arg_SynchronizationLockException")) {
SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
}
public SynchronizationLockException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
}
public SynchronizationLockException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_SYNCHRONIZATIONLOCK);
}
protected SynchronizationLockException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
// 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
- DetailsViewInsertedEventArgs.cs
- Operator.cs
- Win32KeyboardDevice.cs
- TreeViewEvent.cs
- HyperLinkDesigner.cs
- DesigntimeLicenseContextSerializer.cs
- SessionStateContainer.cs
- MergeFilterQuery.cs
- SqlParameter.cs
- WindowsButton.cs
- XmlBinaryReader.cs
- Assembly.cs
- SoapServerMethod.cs
- ClosableStream.cs
- DeviceContexts.cs
- BufferedGraphicsManager.cs
- JoinGraph.cs
- ForceCopyBuildProvider.cs
- InstallerTypeAttribute.cs
- NullableDecimalSumAggregationOperator.cs
- SmtpReplyReader.cs
- ClientConfigPaths.cs
- Ops.cs
- ObjectTag.cs
- BitmapFrameEncode.cs
- typedescriptorpermissionattribute.cs
- PowerModeChangedEventArgs.cs
- Underline.cs
- LayeredChannelFactory.cs
- StaticFileHandler.cs
- SizeKeyFrameCollection.cs
- StringFunctions.cs
- AssemblyName.cs
- X509Utils.cs
- EventQueueState.cs
- AtomMaterializer.cs
- SqlDataSourceStatusEventArgs.cs
- SQLConvert.cs
- SafeProcessHandle.cs
- EntityStoreSchemaGenerator.cs
- RoleGroup.cs
- MetadataItem_Static.cs
- RtfToXamlLexer.cs
- GeometryDrawing.cs
- FeatureSupport.cs
- WindowsTitleBar.cs
- ObjectContext.cs
- UIntPtr.cs
- TimeoutValidationAttribute.cs
- Item.cs
- FlatButtonAppearance.cs
- PopupControlService.cs
- XmlDataContract.cs
- IPEndPoint.cs
- ExtensionElement.cs
- DeferredSelectedIndexReference.cs
- ElementHostAutomationPeer.cs
- XmlSequenceWriter.cs
- IncrementalCompileAnalyzer.cs
- DeflateStreamAsyncResult.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SafeCloseHandleCritical.cs
- ComponentManagerBroker.cs
- Positioning.cs
- XmlWrappingReader.cs
- HorizontalAlignConverter.cs
- LocatorPart.cs
- XmlElementList.cs
- Track.cs
- HtmlDocument.cs
- CustomTypeDescriptor.cs
- MsmqQueue.cs
- AsyncCompletedEventArgs.cs
- CheckBox.cs
- DataRelation.cs
- GridViewEditEventArgs.cs
- CompilerParameters.cs
- Renderer.cs
- AlignmentYValidation.cs
- DurationConverter.cs
- IssuedTokenClientBehaviorsElement.cs
- ItemsPanelTemplate.cs
- Document.cs
- ComponentResourceKeyConverter.cs
- LicenseProviderAttribute.cs
- EpmSyndicationContentDeSerializer.cs
- HScrollProperties.cs
- xamlnodes.cs
- TypeExtension.cs
- XmlSchemaObject.cs
- DataGridViewAccessibleObject.cs
- BamlBinaryReader.cs
- CalendarSelectionChangedEventArgs.cs
- XmlNodeList.cs
- TypedElement.cs
- AsyncCompletedEventArgs.cs
- BufferBuilder.cs
- IChannel.cs
- DomNameTable.cs
- ByteStack.cs