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
- URLAttribute.cs
- SoapHeader.cs
- FirstQueryOperator.cs
- IndexingContentUnit.cs
- RowUpdatingEventArgs.cs
- IsolatedStorageFile.cs
- EntityDataSourceStatementEditorForm.cs
- EntitySetBase.cs
- AbstractSvcMapFileLoader.cs
- relpropertyhelper.cs
- ExpressionCopier.cs
- TreeBuilder.cs
- Stream.cs
- StyleXamlTreeBuilder.cs
- Style.cs
- DynamicFilterExpression.cs
- Formatter.cs
- WebBrowserHelper.cs
- ProcessHostServerConfig.cs
- URL.cs
- ObjectManager.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PropertyValidationContext.cs
- Link.cs
- Point.cs
- ApplicationInterop.cs
- User.cs
- XmlSchemaSimpleContentExtension.cs
- DataKeyArray.cs
- HwndHostAutomationPeer.cs
- ObjectListCommandEventArgs.cs
- ParagraphVisual.cs
- VectorConverter.cs
- AssemblyFilter.cs
- EnumMember.cs
- ExpressionBuilderCollection.cs
- BezierSegment.cs
- MediaCommands.cs
- LinkTarget.cs
- AutomationAttributeInfo.cs
- DbMetaDataCollectionNames.cs
- UnmanagedMarshal.cs
- SystemIPAddressInformation.cs
- WinInet.cs
- StylusPointPropertyInfoDefaults.cs
- SelectionEditingBehavior.cs
- HtmlInputImage.cs
- CommonGetThemePartSize.cs
- RegexRunnerFactory.cs
- ScriptingProfileServiceSection.cs
- MetadataWorkspace.cs
- SqlProcedureAttribute.cs
- EncryptedReference.cs
- XmlSchemaSimpleContentRestriction.cs
- DetailsViewDesigner.cs
- HttpListenerRequestTraceRecord.cs
- PageSettings.cs
- CompositeControl.cs
- TypeHelpers.cs
- WorkflowControlEndpoint.cs
- WrappedReader.cs
- DateRangeEvent.cs
- TaiwanLunisolarCalendar.cs
- UnsignedPublishLicense.cs
- QueryCursorEventArgs.cs
- ThreadExceptionDialog.cs
- WSHttpBindingBase.cs
- ChannelTraceRecord.cs
- SafeCloseHandleCritical.cs
- RectangleHotSpot.cs
- Size3D.cs
- XPathNodePointer.cs
- SoapHeaders.cs
- HtmlTernaryTree.cs
- ResourcesBuildProvider.cs
- LogicalTreeHelper.cs
- LogEntryHeaderSerializer.cs
- SerialPinChanges.cs
- Literal.cs
- KeySpline.cs
- StateDesigner.LayoutSelectionGlyph.cs
- SaveWorkflowAsyncResult.cs
- DataGridViewCellMouseEventArgs.cs
- BrushMappingModeValidation.cs
- Point4DConverter.cs
- WebPartVerbsEventArgs.cs
- PropVariant.cs
- baseaxisquery.cs
- EntryPointNotFoundException.cs
- InkCanvasAutomationPeer.cs
- InvalidPropValue.cs
- FunctionMappingTranslator.cs
- InputLangChangeRequestEvent.cs
- ValueSerializer.cs
- SqlTypeConverter.cs
- ProfilePropertySettingsCollection.cs
- UriTemplateEquivalenceComparer.cs
- SiteMapNodeCollection.cs
- SatelliteContractVersionAttribute.cs
- GuidelineSet.cs