Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / InvalidEnumArgumentException.cs / 1 / InvalidEnumArgumentException.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using Microsoft.Win32; using System; using System.Diagnostics; using System.Globalization; using System.Runtime.Serialization; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [Serializable] public class InvalidEnumArgumentException : ArgumentException { ///The exception that is thrown when using invalid arguments that are enumerators. ////// public InvalidEnumArgumentException() : this(null) { } ///Initializes a new instance of the ///class without a message. /// public InvalidEnumArgumentException(string message) : base(message) { } ///Initializes a new instance of the ///class with /// the specified message. /// Initializes a new instance of the Exception class with a specified error message and a /// reference to the inner exception that is the cause of this exception. /// FxCop CA1032: Multiple constructors are required to correctly implement a custom exception. /// public InvalidEnumArgumentException( string message, Exception innerException ) : base(message, innerException) { } ////// public InvalidEnumArgumentException(string argumentName, int invalidValue, Type enumClass) : base(SR.GetString(SR.InvalidEnumArgument, argumentName, invalidValue.ToString(CultureInfo.CurrentCulture), enumClass.Name), argumentName) { } ///Initializes a new instance of the ///class with a /// message generated from the argument, invalid value, and enumeration /// class. /// Need this constructor since Exception implements ISerializable. We don't have any fields, /// so just forward this to base. /// protected InvalidEnumArgumentException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ZipIOExtraFieldPaddingElement.cs
- WebPartDisplayModeCollection.cs
- Clause.cs
- WebHttpDispatchOperationSelectorData.cs
- DeviceFilterDictionary.cs
- ClientSideProviderDescription.cs
- MarkupCompilePass1.cs
- C14NUtil.cs
- HttpDebugHandler.cs
- IntegerValidator.cs
- ProviderException.cs
- HandlerElement.cs
- UriSection.cs
- Pkcs7Recipient.cs
- LinqDataSourceDeleteEventArgs.cs
- SqlInternalConnectionSmi.cs
- GcHandle.cs
- ListContractAdapter.cs
- GlyphRunDrawing.cs
- XmlQueryStaticData.cs
- _FtpControlStream.cs
- SystemTcpConnection.cs
- XPathMultyIterator.cs
- BinaryMethodMessage.cs
- Object.cs
- TcpChannelHelper.cs
- TraceEventCache.cs
- ButtonField.cs
- NativeMethods.cs
- ScriptingProfileServiceSection.cs
- WsiProfilesElementCollection.cs
- ScrollItemPattern.cs
- ListBindableAttribute.cs
- XamlToRtfParser.cs
- TextFormatter.cs
- XmlSchemaSimpleTypeRestriction.cs
- SapiGrammar.cs
- QueryStringParameter.cs
- ForceCopyBuildProvider.cs
- StoreAnnotationsMap.cs
- PipeSecurity.cs
- SettingsBindableAttribute.cs
- FieldTemplateUserControl.cs
- WebScriptMetadataMessageEncoderFactory.cs
- CertificateElement.cs
- RIPEMD160.cs
- DataGridViewRowCollection.cs
- AdCreatedEventArgs.cs
- GridViewDeletedEventArgs.cs
- Int16AnimationBase.cs
- RefType.cs
- AssertUtility.cs
- Graph.cs
- HeaderCollection.cs
- ISFClipboardData.cs
- SelectionWordBreaker.cs
- ReliableChannelListener.cs
- CompilerCollection.cs
- TextSerializer.cs
- CryptoApi.cs
- ToolStripDropDownItem.cs
- Item.cs
- SID.cs
- StructuralType.cs
- KeyEventArgs.cs
- FaultFormatter.cs
- datacache.cs
- DataGridViewIntLinkedList.cs
- SqlProvider.cs
- TypeCodeDomSerializer.cs
- SqlCharStream.cs
- PolicyLevel.cs
- TableCell.cs
- RotateTransform.cs
- NotImplementedException.cs
- EventLogConfiguration.cs
- FontStyles.cs
- AnimationLayer.cs
- DependencyPropertyHelper.cs
- XmlDataSource.cs
- StrokeRenderer.cs
- SQLGuid.cs
- UIElementIsland.cs
- PropertySourceInfo.cs
- ResetableIterator.cs
- OleDbFactory.cs
- ParallelTimeline.cs
- VerticalAlignConverter.cs
- TransformerConfigurationWizardBase.cs
- AbsoluteQuery.cs
- SocketAddress.cs
- ADConnectionHelper.cs
- Brush.cs
- NativeMethods.cs
- ThicknessAnimation.cs
- XmlQueryType.cs
- ObjectCloneHelper.cs
- FunctionCommandText.cs
- TextBox.cs
- ErrorTableItemStyle.cs