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
- LogRestartAreaEnumerator.cs
- View.cs
- WMICapabilities.cs
- TextEditorParagraphs.cs
- ProfileServiceManager.cs
- Icon.cs
- BitSet.cs
- XmlTextAttribute.cs
- ViewStateException.cs
- XPathEmptyIterator.cs
- SessionStateUtil.cs
- SqlTopReducer.cs
- ProcessManager.cs
- SymmetricSecurityProtocolFactory.cs
- SpinLock.cs
- SqlConnectionManager.cs
- FirstMatchCodeGroup.cs
- CodeCommentStatement.cs
- _NestedSingleAsyncResult.cs
- LinqDataSourceValidationException.cs
- Message.cs
- PermissionListSet.cs
- OdbcConnectionFactory.cs
- DBNull.cs
- NotifyCollectionChangedEventArgs.cs
- SmiEventStream.cs
- SessionPageStateSection.cs
- UTF7Encoding.cs
- ErrorWebPart.cs
- ImageButton.cs
- FixedDocumentSequencePaginator.cs
- FileReader.cs
- KnownTypesHelper.cs
- MouseButtonEventArgs.cs
- CollectionChangedEventManager.cs
- ExecutionEngineException.cs
- RegexStringValidator.cs
- NumberFormatter.cs
- BaseDataListPage.cs
- TemplateContentLoader.cs
- FullTextState.cs
- BitmapEffectrendercontext.cs
- EntityModelSchemaGenerator.cs
- RunInstallerAttribute.cs
- Misc.cs
- QuaternionRotation3D.cs
- WrappedReader.cs
- DataList.cs
- CodeObjectCreateExpression.cs
- autovalidator.cs
- Signature.cs
- SerializationUtility.cs
- ManagementQuery.cs
- XsdDateTime.cs
- DataListCommandEventArgs.cs
- XmlMapping.cs
- ObjectItemConventionAssemblyLoader.cs
- HighlightVisual.cs
- LocatorPart.cs
- FormsAuthenticationModule.cs
- ExpressionNode.cs
- regiisutil.cs
- ExceptionNotification.cs
- DataReaderContainer.cs
- ClassHandlersStore.cs
- EdmItemCollection.cs
- Point3DCollectionConverter.cs
- itemelement.cs
- HtmlHead.cs
- SecureStringHasher.cs
- OperatingSystem.cs
- JoinElimination.cs
- fixedPageContentExtractor.cs
- StyleCollection.cs
- DetailsViewUpdatedEventArgs.cs
- SchemaImporterExtension.cs
- TogglePatternIdentifiers.cs
- WindowCollection.cs
- QueryOutputWriterV1.cs
- DefaultProxySection.cs
- TextDecoration.cs
- ButtonFieldBase.cs
- MenuEventArgs.cs
- XmlBinaryReader.cs
- Context.cs
- RepeaterItemCollection.cs
- XmlSchemaImport.cs
- DLinqDataModelProvider.cs
- SharedHttpsTransportManager.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TableHeaderCell.cs
- PersistenceParticipant.cs
- GcSettings.cs
- SafeReadContext.cs
- _NegoStream.cs
- WorkflowCommandExtensionItem.cs
- BitmapEffectInputData.cs
- Parallel.cs
- ValidationSummary.cs
- DataSourceSelectArguments.cs