Code:
/ FX-1434 / FX-1434 / 1.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
- rsa.cs
- IndexedDataBuffer.cs
- PackagePartCollection.cs
- RealProxy.cs
- ContentDefinition.cs
- StackBuilderSink.cs
- BamlResourceDeserializer.cs
- FigureHelper.cs
- ImageIndexConverter.cs
- CodePropertyReferenceExpression.cs
- DesignTimeVisibleAttribute.cs
- RequiredArgumentAttribute.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TransportSecurityProtocolFactory.cs
- codemethodreferenceexpression.cs
- UInt32Storage.cs
- XNodeSchemaApplier.cs
- BookmarkScopeHandle.cs
- XmlUrlResolver.cs
- SectionUpdates.cs
- WindowProviderWrapper.cs
- MultipleViewPatternIdentifiers.cs
- SequentialUshortCollection.cs
- DataGridViewAddColumnDialog.cs
- Interlocked.cs
- WindowsTooltip.cs
- FileDialogPermission.cs
- Substitution.cs
- UdpDiscoveryEndpointElement.cs
- RangeValueProviderWrapper.cs
- WebBrowserContainer.cs
- Filter.cs
- Trace.cs
- NavigationWindowAutomationPeer.cs
- TraceSection.cs
- InternalCache.cs
- EntityType.cs
- indexingfiltermarshaler.cs
- KernelTypeValidation.cs
- ListViewCommandEventArgs.cs
- XmlSchemaComplexContentRestriction.cs
- DirectoryRootQuery.cs
- PropertyCollection.cs
- PropertyGridEditorPart.cs
- ObsoleteAttribute.cs
- JpegBitmapDecoder.cs
- RangeValidator.cs
- _TimerThread.cs
- ObjectReaderCompiler.cs
- ColumnWidthChangingEvent.cs
- DataRowView.cs
- PolicyConversionContext.cs
- XmlTextReader.cs
- Brush.cs
- HotSpotCollection.cs
- GridViewDesigner.cs
- PageAdapter.cs
- XmlObjectSerializerContext.cs
- Listbox.cs
- ObjectStateEntryDbDataRecord.cs
- shaperfactoryquerycachekey.cs
- base64Transforms.cs
- MarshalByValueComponent.cs
- OracleTransaction.cs
- CodeGroup.cs
- RevocationPoint.cs
- QueryStringParameter.cs
- LocatorPartList.cs
- DefaultTraceListener.cs
- ProviderBase.cs
- BindingList.cs
- SessionPageStateSection.cs
- EntityExpressionVisitor.cs
- OutputCacheModule.cs
- TypeLibConverter.cs
- WindowsBrush.cs
- ParameterBinding.cs
- XmlElementAttributes.cs
- UserPreferenceChangingEventArgs.cs
- ConnectionManagementElement.cs
- Quad.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- StreamUpdate.cs
- SafeMILHandle.cs
- PermissionToken.cs
- MobileUserControlDesigner.cs
- Solver.cs
- LinqDataSourceInsertEventArgs.cs
- JournalEntryStack.cs
- QuaternionIndependentAnimationStorage.cs
- WebRequest.cs
- SystemIPInterfaceStatistics.cs
- UniformGrid.cs
- wmiprovider.cs
- WsdlInspector.cs
- FormParameter.cs
- SerializationHelper.cs
- SiteMapNodeCollection.cs
- PlanCompilerUtil.cs
- FilePresentation.cs