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
- EncodingInfo.cs
- TCEAdapterGenerator.cs
- ConnectionStringSettingsCollection.cs
- NativeWindow.cs
- HorizontalAlignConverter.cs
- BitmapEffect.cs
- _NegotiateClient.cs
- NameValueCollection.cs
- CqlWriter.cs
- WinEventTracker.cs
- SoapInteropTypes.cs
- WebPartConnectionsConfigureVerb.cs
- TextShapeableCharacters.cs
- pingexception.cs
- ImmutableCollection.cs
- ItemDragEvent.cs
- TimeSpanSecondsConverter.cs
- AbandonedMutexException.cs
- DataGridViewComboBoxCell.cs
- RegisterResponseInfo.cs
- SqlNodeAnnotations.cs
- HtmlForm.cs
- PersonalizationEntry.cs
- Tuple.cs
- NullableIntMinMaxAggregationOperator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- RepeaterItemEventArgs.cs
- ConnectionStringsSection.cs
- OdbcParameterCollection.cs
- DataControlFieldTypeEditor.cs
- ObjectToken.cs
- DetailsViewAutoFormat.cs
- GiveFeedbackEvent.cs
- LogEntryHeaderSerializer.cs
- WindowsBrush.cs
- XpsResourcePolicy.cs
- BoolExpression.cs
- Pens.cs
- DataGridViewCellParsingEventArgs.cs
- JumpPath.cs
- TransactedReceiveScope.cs
- ProfilePropertyNameValidator.cs
- PeerTransportListenAddressValidatorAttribute.cs
- DropDownButton.cs
- Typeface.cs
- ArraySortHelper.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- EntityContainerAssociationSet.cs
- EventLogPermission.cs
- HostProtectionException.cs
- PropertyPathWorker.cs
- EpmSyndicationContentSerializer.cs
- FixedSOMGroup.cs
- SubpageParagraph.cs
- SqlExpander.cs
- TargetControlTypeAttribute.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- FactoryRecord.cs
- ArgumentsParser.cs
- ReversePositionQuery.cs
- FolderBrowserDialogDesigner.cs
- RectangleGeometry.cs
- TextDecorations.cs
- DataGridViewCellParsingEventArgs.cs
- ReferentialConstraint.cs
- FilteredReadOnlyMetadataCollection.cs
- BufferBuilder.cs
- GridLength.cs
- LambdaCompiler.Expressions.cs
- InputLanguage.cs
- StreamHelper.cs
- UIAgentAsyncBeginRequest.cs
- MultipartContentParser.cs
- TrustManager.cs
- WebConfigurationHost.cs
- ContentControl.cs
- XmlSchemaSequence.cs
- ViewManager.cs
- HorizontalAlignConverter.cs
- ObjectDisposedException.cs
- UIElementAutomationPeer.cs
- DesignerActionPanel.cs
- ListSourceHelper.cs
- ContourSegment.cs
- ImageCollectionEditor.cs
- Span.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- WebPartZoneDesigner.cs
- DeploymentSectionCache.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ColumnResizeAdorner.cs
- VectorAnimation.cs
- DockProviderWrapper.cs
- HttpHeaderCollection.cs
- SqlConnectionStringBuilder.cs
- TextTreeText.cs
- BamlLocalizer.cs
- MessageQueueAccessControlEntry.cs
- VersionedStreamOwner.cs
- SimpleType.cs