Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InvalidEnumArgumentException.cs / 1305376 / 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) { } } } // 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
- DataViewSettingCollection.cs
- MetadataPropertyvalue.cs
- FlowLayoutSettings.cs
- CompilerTypeWithParams.cs
- PeerServiceMessageContracts.cs
- DataSourceCacheDurationConverter.cs
- DataGridViewCellFormattingEventArgs.cs
- FlatButtonAppearance.cs
- X509ChainElement.cs
- MonthCalendar.cs
- DictionaryKeyPropertyAttribute.cs
- ColorTransformHelper.cs
- InkCanvasFeedbackAdorner.cs
- XmlArrayAttribute.cs
- ColumnWidthChangedEvent.cs
- WebPartHeaderCloseVerb.cs
- HtmlControlPersistable.cs
- PngBitmapEncoder.cs
- TableProvider.cs
- EventMappingSettingsCollection.cs
- ThumbAutomationPeer.cs
- DataSourceProvider.cs
- SoundPlayerAction.cs
- WizardPanel.cs
- GridItemCollection.cs
- DataBindingCollectionEditor.cs
- FrugalMap.cs
- DataObjectEventArgs.cs
- StylusPlugin.cs
- BaseCodePageEncoding.cs
- GrammarBuilderWildcard.cs
- XmlSchemaInferenceException.cs
- EndpointDiscoveryBehavior.cs
- GridViewSelectEventArgs.cs
- RepeatButton.cs
- CategoryGridEntry.cs
- UidManager.cs
- ButtonStandardAdapter.cs
- GenerateHelper.cs
- VectorKeyFrameCollection.cs
- VisualTarget.cs
- HitTestParameters3D.cs
- XPathSelfQuery.cs
- ParenExpr.cs
- InputQueue.cs
- GlobalProxySelection.cs
- Propagator.Evaluator.cs
- PtsContext.cs
- ConditionValidator.cs
- unsafenativemethodstextservices.cs
- PageThemeBuildProvider.cs
- BindingValueChangedEventArgs.cs
- Stroke2.cs
- processwaithandle.cs
- InvalidComObjectException.cs
- RecipientInfo.cs
- InternalsVisibleToAttribute.cs
- WeakReferenceEnumerator.cs
- UnSafeCharBuffer.cs
- ToolStripButton.cs
- BufferedGraphicsManager.cs
- SerialReceived.cs
- ListBase.cs
- PreProcessInputEventArgs.cs
- TimeManager.cs
- SystemNetHelpers.cs
- OracleParameterBinding.cs
- UserNamePasswordServiceCredential.cs
- ContentPlaceHolderDesigner.cs
- TypeDescriptor.cs
- XmlCDATASection.cs
- OdbcConnectionHandle.cs
- BezierSegment.cs
- ObjRef.cs
- ComponentCollection.cs
- NativeMethods.cs
- MetadataConversionError.cs
- UndoUnit.cs
- CustomTypeDescriptor.cs
- Light.cs
- DataSvcMapFile.cs
- DetectEofStream.cs
- SoapDocumentMethodAttribute.cs
- GridSplitterAutomationPeer.cs
- ReferenceEqualityComparer.cs
- sqlmetadatafactory.cs
- _OverlappedAsyncResult.cs
- DesignerCatalogPartChrome.cs
- SerializationInfoEnumerator.cs
- StringBuilder.cs
- SimpleHandlerFactory.cs
- WebPartEditorCancelVerb.cs
- WindowsSysHeader.cs
- CodeExporter.cs
- KeyValueConfigurationElement.cs
- WebBrowserEvent.cs
- XmlBinaryWriterSession.cs
- AppModelKnownContentFactory.cs
- Control.cs
- Primitive.cs