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
- SchemaNotation.cs
- ExecutionEngineException.cs
- SqlCharStream.cs
- Clock.cs
- TextTabProperties.cs
- TextParagraphView.cs
- SiteMapHierarchicalDataSourceView.cs
- SQLByteStorage.cs
- SudsWriter.cs
- SchemaNames.cs
- XsdDataContractExporter.cs
- UnsafeNativeMethodsCLR.cs
- BaseValidator.cs
- bindurihelper.cs
- DynamicValidator.cs
- DbBuffer.cs
- WarningException.cs
- MruCache.cs
- StorageEntityTypeMapping.cs
- SetState.cs
- WorkflowServiceAttributes.cs
- SafeViewOfFileHandle.cs
- BinHexEncoder.cs
- TraceContextEventArgs.cs
- ScrollableControl.cs
- AtomServiceDocumentSerializer.cs
- ScriptControlDescriptor.cs
- Line.cs
- SendKeys.cs
- ApplicationServicesHostFactory.cs
- XmlAnyElementAttribute.cs
- handlecollector.cs
- WhitespaceRuleLookup.cs
- InputScopeManager.cs
- NumericExpr.cs
- FontConverter.cs
- WmiInstallComponent.cs
- MulticastDelegate.cs
- UIAgentMonitor.cs
- PointHitTestParameters.cs
- MouseActionValueSerializer.cs
- ObjectDataSourceSelectingEventArgs.cs
- WebPartsPersonalization.cs
- Type.cs
- TypeConstant.cs
- Lease.cs
- ListCollectionView.cs
- XmlReaderSettings.cs
- RuntimeArgumentHandle.cs
- GenerateTemporaryTargetAssembly.cs
- WorkflowTransactionOptions.cs
- StrokeSerializer.cs
- XslException.cs
- UrlUtility.cs
- ValidateNames.cs
- SafePipeHandle.cs
- NullableDecimalSumAggregationOperator.cs
- QuaternionRotation3D.cs
- ContextStack.cs
- _DigestClient.cs
- StsCommunicationException.cs
- NameValueConfigurationElement.cs
- ChangeNode.cs
- MultiTrigger.cs
- SoapFault.cs
- TextFormatterContext.cs
- RichTextBoxAutomationPeer.cs
- SqlProviderManifest.cs
- BitVector32.cs
- LoginUtil.cs
- figurelength.cs
- LinqDataSourceContextEventArgs.cs
- ByteStreamMessageEncodingElement.cs
- XmlQueryType.cs
- StorageEntityTypeMapping.cs
- FaultPropagationRecord.cs
- TaskFactory.cs
- DesignerExtenders.cs
- MapPathBasedVirtualPathProvider.cs
- TaiwanLunisolarCalendar.cs
- FaultException.cs
- ConfigurationConverterBase.cs
- WhitespaceRuleLookup.cs
- DataGridViewRow.cs
- Documentation.cs
- QueryRewriter.cs
- Blend.cs
- JoinGraph.cs
- PictureBoxDesigner.cs
- RawTextInputReport.cs
- TextEditorContextMenu.cs
- Application.cs
- SqlExpressionNullability.cs
- ScopedKnownTypes.cs
- QilInvoke.cs
- WFItemsToSpacerVisibility.cs
- DataGridViewColumnConverter.cs
- Win32.cs
- FixedPosition.cs
- DynamicArgumentDialog.cs