Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / DuplicateWaitObjectException.cs / 1 / DuplicateWaitObjectException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: DuplicateWaitObjectException ** ** ** Purpose: Exception class for duplicate objects in WaitAll/WaitAny. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Remoting; using System.Runtime.Serialization; // The DuplicateWaitObjectException is thrown when an object // appears more than once in the list of objects to WaitAll or WaitAny. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class DuplicateWaitObjectException : ArgumentException { private static String _duplicateWaitObjectMessage = null; private static String DuplicateWaitObjectMessage { get { if (_duplicateWaitObjectMessage == null) _duplicateWaitObjectMessage = Environment.GetResourceString("Arg_DuplicateWaitObjectException"); return _duplicateWaitObjectMessage; } } // Creates a new DuplicateWaitObjectException with its message // string set to a default message. public DuplicateWaitObjectException() : base(DuplicateWaitObjectMessage) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } public DuplicateWaitObjectException(String parameterName) : base(DuplicateWaitObjectMessage, parameterName) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } public DuplicateWaitObjectException(String parameterName, String message) : base(message, parameterName) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } public DuplicateWaitObjectException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } // This constructor is required for serialization protected DuplicateWaitObjectException(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: DuplicateWaitObjectException ** ** ** Purpose: Exception class for duplicate objects in WaitAll/WaitAny. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Remoting; using System.Runtime.Serialization; // The DuplicateWaitObjectException is thrown when an object // appears more than once in the list of objects to WaitAll or WaitAny. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class DuplicateWaitObjectException : ArgumentException { private static String _duplicateWaitObjectMessage = null; private static String DuplicateWaitObjectMessage { get { if (_duplicateWaitObjectMessage == null) _duplicateWaitObjectMessage = Environment.GetResourceString("Arg_DuplicateWaitObjectException"); return _duplicateWaitObjectMessage; } } // Creates a new DuplicateWaitObjectException with its message // string set to a default message. public DuplicateWaitObjectException() : base(DuplicateWaitObjectMessage) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } public DuplicateWaitObjectException(String parameterName) : base(DuplicateWaitObjectMessage, parameterName) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } public DuplicateWaitObjectException(String parameterName, String message) : base(message, parameterName) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } public DuplicateWaitObjectException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_DUPLICATEWAITOBJECT); } // This constructor is required for serialization protected DuplicateWaitObjectException(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
- DataTableClearEvent.cs
- AuthenticationManager.cs
- SessionEndingEventArgs.cs
- UnlockInstanceAsyncResult.cs
- ThemeableAttribute.cs
- BitConverter.cs
- CacheVirtualItemsEvent.cs
- SettingsBase.cs
- InputBuffer.cs
- LocalClientSecuritySettings.cs
- KernelTypeValidation.cs
- SamlConditions.cs
- Activator.cs
- EncryptedData.cs
- GlyphCollection.cs
- TypeBuilderInstantiation.cs
- PrinterResolution.cs
- ListViewDeletedEventArgs.cs
- InfoCardRSACryptoProvider.cs
- InheritanceContextHelper.cs
- PasswordBoxAutomationPeer.cs
- HtmlHistory.cs
- PolicyLevel.cs
- BaseDataBoundControl.cs
- HttpDebugHandler.cs
- SqlDataSourceCache.cs
- TrackingMemoryStream.cs
- Rule.cs
- ParenthesizePropertyNameAttribute.cs
- PrinterResolution.cs
- WizardPanel.cs
- GlyphInfoList.cs
- SqlNodeAnnotations.cs
- ApplicationActivator.cs
- DescendantBaseQuery.cs
- PageContentAsyncResult.cs
- SafeEventLogWriteHandle.cs
- ClientRolePrincipal.cs
- ProfessionalColors.cs
- MainMenu.cs
- Model3DGroup.cs
- UndoEngine.cs
- Context.cs
- CommandExpr.cs
- X509CertificateStore.cs
- TemplateXamlTreeBuilder.cs
- InvariantComparer.cs
- ParameterCollection.cs
- TrustSection.cs
- DefaultValueTypeConverter.cs
- Function.cs
- FieldMetadata.cs
- DesignerLoader.cs
- Int32RectConverter.cs
- DoubleLinkList.cs
- ThousandthOfEmRealPoints.cs
- NavigationWindow.cs
- ExpressionBuilderCollection.cs
- PublisherMembershipCondition.cs
- BaseCodeDomTreeGenerator.cs
- ProtocolViolationException.cs
- XPathNavigator.cs
- EventHandlersDesigner.cs
- GeometryDrawing.cs
- LabelEditEvent.cs
- StringValidatorAttribute.cs
- Size.cs
- PathGradientBrush.cs
- DbConnectionHelper.cs
- _UncName.cs
- LineSegment.cs
- PointLight.cs
- MessageBox.cs
- DemultiplexingClientMessageFormatter.cs
- WebPartActionVerb.cs
- CompiledQuery.cs
- TemplateApplicationHelper.cs
- XNodeNavigator.cs
- WindowsAuthenticationEventArgs.cs
- XmlILOptimizerVisitor.cs
- UnSafeCharBuffer.cs
- _HeaderInfoTable.cs
- Vector3D.cs
- Attributes.cs
- TimeStampChecker.cs
- Quaternion.cs
- AvTraceFormat.cs
- TemplateControl.cs
- TextContainerHelper.cs
- MembershipSection.cs
- _SslStream.cs
- TreeNodeEventArgs.cs
- BamlLocalizabilityResolver.cs
- SourceSwitch.cs
- StorageMappingItemLoader.cs
- ItemsPanelTemplate.cs
- FormsIdentity.cs
- FieldDescriptor.cs
- ObjectItemLoadingSessionData.cs
- cookiecollection.cs