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
- Wildcard.cs
- IPGlobalProperties.cs
- Inflater.cs
- RoutingSection.cs
- ContractMapping.cs
- EndpointReference.cs
- UInt64Storage.cs
- ImageBrush.cs
- PeerCollaborationPermission.cs
- Int64AnimationUsingKeyFrames.cs
- HttpCacheVaryByContentEncodings.cs
- PolyQuadraticBezierSegment.cs
- ParameterElementCollection.cs
- SecurityPermission.cs
- EntityProviderServices.cs
- SerializationInfo.cs
- DataServiceRequestException.cs
- ContextMarshalException.cs
- BuildResultCache.cs
- RoutingExtension.cs
- GlyphRun.cs
- TextEditorMouse.cs
- ImageResources.Designer.cs
- ObjectSet.cs
- StringPropertyBuilder.cs
- DbModificationClause.cs
- SoapElementAttribute.cs
- XmlParserContext.cs
- OleDbConnectionInternal.cs
- WebPartActionVerb.cs
- DescendentsWalkerBase.cs
- SimpleLine.cs
- WindowShowOrOpenTracker.cs
- ListViewHitTestInfo.cs
- BindingObserver.cs
- NumberSubstitution.cs
- IERequestCache.cs
- InvalidDataException.cs
- ScaleTransform.cs
- HybridDictionary.cs
- Matrix.cs
- CodeAttributeDeclaration.cs
- WorkflowElementDialogWindow.xaml.cs
- PolicyStatement.cs
- PersonalizationProvider.cs
- WebPartConnectionsEventArgs.cs
- AcceptorSessionSymmetricMessageSecurityProtocol.cs
- DiagnosticSection.cs
- OdbcFactory.cs
- MouseEventArgs.cs
- MutexSecurity.cs
- SoapObjectWriter.cs
- ItemAutomationPeer.cs
- AxHost.cs
- CommonRemoteMemoryBlock.cs
- TableCellsCollectionEditor.cs
- FunctionOverloadResolver.cs
- XmlSchemaComplexContentExtension.cs
- SecurityKeyType.cs
- FusionWrap.cs
- AsnEncodedData.cs
- HtmlTernaryTree.cs
- OperationCanceledException.cs
- Compensation.cs
- TimelineGroup.cs
- RadioButtonList.cs
- EmptyEnumerator.cs
- CollectionConverter.cs
- SevenBitStream.cs
- AstNode.cs
- ReflectionServiceProvider.cs
- RadioButtonAutomationPeer.cs
- ConfigXmlAttribute.cs
- ServiceOperation.cs
- WebDescriptionAttribute.cs
- LocalizationParserHooks.cs
- RectangleHotSpot.cs
- EasingFunctionBase.cs
- DynamicField.cs
- MediaContextNotificationWindow.cs
- ImagingCache.cs
- MessageQueuePermissionEntry.cs
- DbModificationCommandTree.cs
- DataGridViewTextBoxCell.cs
- TagPrefixCollection.cs
- securestring.cs
- LoginName.cs
- Model3D.cs
- DbXmlEnabledProviderManifest.cs
- SchemaImporterExtensionElement.cs
- SQLMoney.cs
- ResXFileRef.cs
- DecoderFallbackWithFailureFlag.cs
- DbQueryCommandTree.cs
- XmlReflectionImporter.cs
- XslVisitor.cs
- Polyline.cs
- HttpAsyncResult.cs
- XpsInterleavingPolicy.cs
- ActivityTypeDesigner.xaml.cs