Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / ArrayTypeMismatchException.cs / 1 / ArrayTypeMismatchException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ArrayTypeMismatchException ** ** ** Purpose: The arrays are of different primitive types. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; // The ArrayMismatchException is thrown when an attempt to store // an object of the wrong type within an array occurs. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class ArrayTypeMismatchException : SystemException { // Creates a new ArrayMismatchException with its message string set to // the empty string, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. public ArrayTypeMismatchException() : base(Environment.GetResourceString("Arg_ArrayTypeMismatchException")) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } // Creates a new ArrayMismatchException with its message string set to // message, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. // public ArrayTypeMismatchException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } public ArrayTypeMismatchException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } protected ArrayTypeMismatchException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ArrayTypeMismatchException ** ** ** Purpose: The arrays are of different primitive types. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; // The ArrayMismatchException is thrown when an attempt to store // an object of the wrong type within an array occurs. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class ArrayTypeMismatchException : SystemException { // Creates a new ArrayMismatchException with its message string set to // the empty string, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. public ArrayTypeMismatchException() : base(Environment.GetResourceString("Arg_ArrayTypeMismatchException")) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } // Creates a new ArrayMismatchException with its message string set to // message, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. // public ArrayTypeMismatchException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } public ArrayTypeMismatchException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } protected ArrayTypeMismatchException(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
- MaterializeFromAtom.cs
- ListItemsPage.cs
- WebPartDisplayModeCollection.cs
- WinFormsSecurity.cs
- ViewSimplifier.cs
- ChannelFactoryBase.cs
- MetadataCache.cs
- PTProvider.cs
- DynamicDiscoSearcher.cs
- GatewayIPAddressInformationCollection.cs
- ExpressionTextBox.xaml.cs
- FlowSwitchDesigner.xaml.cs
- XPathSelfQuery.cs
- BoolExpression.cs
- InstanceData.cs
- Label.cs
- ExceptionUtility.cs
- FacetEnabledSchemaElement.cs
- OleDbConnection.cs
- BasicKeyConstraint.cs
- ToggleProviderWrapper.cs
- IArgumentProvider.cs
- ServiceNameElementCollection.cs
- CodeParameterDeclarationExpressionCollection.cs
- WindowsStatic.cs
- HwndSourceKeyboardInputSite.cs
- InputLanguageSource.cs
- SaveWorkflowAsyncResult.cs
- BitmapEffectGroup.cs
- AnnotationMap.cs
- RedirectionProxy.cs
- RtfToXamlReader.cs
- ValidatingPropertiesEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- TaiwanCalendar.cs
- LicenseProviderAttribute.cs
- LookupNode.cs
- XmlSchemas.cs
- EventHandlerList.cs
- ContentElementAutomationPeer.cs
- ApplicationSecurityInfo.cs
- XmlCharCheckingWriter.cs
- SQLBinaryStorage.cs
- ComponentResourceKey.cs
- References.cs
- ScrollItemProviderWrapper.cs
- PageHandlerFactory.cs
- WSHttpSecurityElement.cs
- FreezableCollection.cs
- XhtmlConformanceSection.cs
- XPathPatternBuilder.cs
- ComponentChangedEvent.cs
- Brush.cs
- WorkflowServiceAttributesTypeConverter.cs
- WindowsGraphics.cs
- ChannelDispatcherBase.cs
- ImplicitInputBrush.cs
- XmlSchemaAttributeGroup.cs
- SafeNativeMethods.cs
- httpserverutility.cs
- ListDictionaryInternal.cs
- NetworkInformationPermission.cs
- ServerValidateEventArgs.cs
- ILGenerator.cs
- ServiceHttpModule.cs
- Token.cs
- GroupDescription.cs
- SystemPens.cs
- SqlDataRecord.cs
- Knowncolors.cs
- HtmlTableRowCollection.cs
- SoapHttpTransportImporter.cs
- Normalization.cs
- ArraySet.cs
- PointF.cs
- WebResponse.cs
- COM2ExtendedBrowsingHandler.cs
- SemanticValue.cs
- COM2EnumConverter.cs
- DataGridViewLinkCell.cs
- DbXmlEnabledProviderManifest.cs
- HttpCookieCollection.cs
- PersistenceTask.cs
- Condition.cs
- DEREncoding.cs
- DependentList.cs
- MLangCodePageEncoding.cs
- EventLogTraceListener.cs
- LambdaCompiler.ControlFlow.cs
- SpotLight.cs
- OdbcCommandBuilder.cs
- TextUtf8RawTextWriter.cs
- ConstructorNeedsTagAttribute.cs
- SqlStream.cs
- QueryCreatedEventArgs.cs
- HtmlElementEventArgs.cs
- IdentityNotMappedException.cs
- TracingConnectionInitiator.cs
- SafeMemoryMappedFileHandle.cs
- ContextTokenTypeConverter.cs