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
- Bidi.cs
- NetSectionGroup.cs
- MetadataCache.cs
- OleServicesContext.cs
- GradientStop.cs
- ListBoxItemAutomationPeer.cs
- ReadWriteControlDesigner.cs
- TraceHelpers.cs
- XmlSchema.cs
- ViewRendering.cs
- XmlSchemaSimpleContentRestriction.cs
- StatusBarAutomationPeer.cs
- ValidationError.cs
- DataListCommandEventArgs.cs
- XmlUtil.cs
- ProvidersHelper.cs
- CombinedTcpChannel.cs
- ResourceReferenceExpressionConverter.cs
- DefaultCommandConverter.cs
- PathSegmentCollection.cs
- TemplatePropertyEntry.cs
- _TLSstream.cs
- FunctionDetailsReader.cs
- TextSchema.cs
- FontWeight.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlWriterSettings.cs
- RenderingEventArgs.cs
- InputLanguageManager.cs
- CapabilitiesState.cs
- SubclassTypeValidatorAttribute.cs
- XmlExpressionDumper.cs
- DbProviderManifest.cs
- Typography.cs
- StickyNoteContentControl.cs
- MessageQueue.cs
- DetailsView.cs
- Renderer.cs
- StreamBodyWriter.cs
- ACE.cs
- Choices.cs
- StructuredTypeEmitter.cs
- OdbcStatementHandle.cs
- DBCommandBuilder.cs
- Color.cs
- TextCompositionManager.cs
- QilPatternVisitor.cs
- HttpServerProtocol.cs
- FormsAuthenticationModule.cs
- GeneralTransform3D.cs
- securitycriticaldata.cs
- ClientFormsAuthenticationCredentials.cs
- BinaryParser.cs
- MaskedTextProvider.cs
- DynamicPropertyHolder.cs
- CompareInfo.cs
- NavigateEvent.cs
- Message.cs
- CustomBinding.cs
- Int32Storage.cs
- ExpressionBinding.cs
- ReadWriteObjectLock.cs
- TextDecorationCollection.cs
- AdditionalEntityFunctions.cs
- StreamUpdate.cs
- XmlWriterDelegator.cs
- CodeMemberMethod.cs
- SoundPlayerAction.cs
- ArraySet.cs
- TemplateControlCodeDomTreeGenerator.cs
- InvalidComObjectException.cs
- TableLayoutCellPaintEventArgs.cs
- GridViewDeleteEventArgs.cs
- ContentElement.cs
- ProcessModuleDesigner.cs
- DebugControllerThread.cs
- MaskedTextProvider.cs
- GridPattern.cs
- DataColumnChangeEvent.cs
- PolicyLevel.cs
- AsyncCompletedEventArgs.cs
- ContainerAction.cs
- RichTextBox.cs
- BypassElementCollection.cs
- ListViewDataItem.cs
- HttpCachePolicyWrapper.cs
- MachineKeyValidationConverter.cs
- StopStoryboard.cs
- HttpRequest.cs
- RequestNavigateEventArgs.cs
- ProfilePropertyMetadata.cs
- TreeNodeBinding.cs
- ReadOnlyDataSource.cs
- FormViewInsertedEventArgs.cs
- ValueQuery.cs
- WebHttpSecurityModeHelper.cs
- HttpCookiesSection.cs
- ImageKeyConverter.cs
- DomainConstraint.cs
- ISAPIApplicationHost.cs