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
- DataColumnMappingCollection.cs
- WebErrorHandler.cs
- OleDbTransaction.cs
- CustomValidator.cs
- OpCodes.cs
- XPathScanner.cs
- RichTextBox.cs
- WorkItem.cs
- TableItemStyle.cs
- HttpCacheVary.cs
- PagerSettings.cs
- AutomationIdentifier.cs
- ClassicBorderDecorator.cs
- Unit.cs
- SqlHelper.cs
- ButtonBase.cs
- HttpCacheVaryByContentEncodings.cs
- ObjectAssociationEndMapping.cs
- ToolboxItem.cs
- ConstraintCollection.cs
- hwndwrapper.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- CodeStatementCollection.cs
- ErrorRuntimeConfig.cs
- TypedTableBaseExtensions.cs
- BitmapEffectInput.cs
- Normalization.cs
- MobileControl.cs
- Funcletizer.cs
- LocalizedNameDescriptionPair.cs
- COM2ICategorizePropertiesHandler.cs
- XhtmlTextWriter.cs
- CrossAppDomainChannel.cs
- DelegateSerializationHolder.cs
- StaticTextPointer.cs
- WebBrowser.cs
- AttributeCallbackBuilder.cs
- Events.cs
- GatewayIPAddressInformationCollection.cs
- WsiProfilesElement.cs
- XmlRootAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- RootBrowserWindow.cs
- LookupTables.cs
- _SafeNetHandles.cs
- Stroke.cs
- NativeMethods.cs
- WebBrowserContainer.cs
- Interfaces.cs
- BinaryParser.cs
- QueryAsyncResult.cs
- BindingBase.cs
- RedistVersionInfo.cs
- UxThemeWrapper.cs
- WebPartTracker.cs
- UserInitiatedRoutedEventPermission.cs
- RecommendedAsConfigurableAttribute.cs
- HtmlTableCellCollection.cs
- Convert.cs
- ExceptionUtility.cs
- XamlBuildTaskServices.cs
- LabelLiteral.cs
- PathFigure.cs
- ContainerUIElement3D.cs
- AcceleratedTokenProviderState.cs
- Vector3D.cs
- LassoSelectionBehavior.cs
- CatalogPartChrome.cs
- FolderBrowserDialogDesigner.cs
- SettingsPropertyCollection.cs
- KeyValuePair.cs
- ProfilePropertySettingsCollection.cs
- WindowsFormsHostPropertyMap.cs
- KeyGestureConverter.cs
- CodeGotoStatement.cs
- namescope.cs
- AddInAttribute.cs
- BindingCollection.cs
- BitmapEffectGroup.cs
- CodeSubDirectoriesCollection.cs
- TableLayout.cs
- StorageMappingFragment.cs
- SHA1CryptoServiceProvider.cs
- ComponentChangingEvent.cs
- NonClientArea.cs
- QueueProcessor.cs
- Currency.cs
- RangeEnumerable.cs
- XmlSchemaResource.cs
- InvokeCompletedEventArgs.cs
- MultipleViewProviderWrapper.cs
- SqlMetaData.cs
- XmlMemberMapping.cs
- WindowsUpDown.cs
- BCryptSafeHandles.cs
- PeekCompletedEventArgs.cs
- DocumentPaginator.cs
- PropertyDescriptor.cs
- SetUserLanguageRequest.cs
- InvalidAsynchronousStateException.cs