Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RepeaterDesigner.cs
- FamilyMap.cs
- Assign.cs
- GetPageNumberCompletedEventArgs.cs
- DayRenderEvent.cs
- KnownTypesProvider.cs
- DataGridView.cs
- OneOfElement.cs
- AutoFocusStyle.xaml.cs
- PropertyStore.cs
- BaseCodeDomTreeGenerator.cs
- DataGridViewBindingCompleteEventArgs.cs
- Int32Rect.cs
- Policy.cs
- WorkflowMarkupSerializerMapping.cs
- DataGridViewCheckBoxCell.cs
- TypeSource.cs
- IfJoinedCondition.cs
- TreeNodeStyle.cs
- HttpPostedFile.cs
- SubclassTypeValidatorAttribute.cs
- ApplicationManager.cs
- TextBoxAutomationPeer.cs
- ToolTip.cs
- BindableTemplateBuilder.cs
- DesignColumnCollection.cs
- CacheAxisQuery.cs
- namescope.cs
- ImageIndexConverter.cs
- TypeConverterHelper.cs
- TargetControlTypeCache.cs
- ScrollItemPatternIdentifiers.cs
- ToolStripDropDownButton.cs
- QueryStringHandler.cs
- ImportCatalogPart.cs
- GenericEnumConverter.cs
- ProgressChangedEventArgs.cs
- ProgressBarBrushConverter.cs
- DataListItemCollection.cs
- Literal.cs
- ListViewDesigner.cs
- PKCS1MaskGenerationMethod.cs
- ConfigXmlCDataSection.cs
- DataListItemEventArgs.cs
- AdRotatorDesigner.cs
- KeyFrames.cs
- ResXResourceSet.cs
- PolyQuadraticBezierSegment.cs
- ConnectionManagementSection.cs
- SafeNativeMethods.cs
- GuidConverter.cs
- NativeMethods.cs
- MarshalByRefObject.cs
- SerializationSectionGroup.cs
- StylusEditingBehavior.cs
- LayoutManager.cs
- TraceSection.cs
- DbRetry.cs
- QuadraticBezierSegment.cs
- ItemsControlAutomationPeer.cs
- SrgsToken.cs
- XamlSerializer.cs
- FilteredDataSetHelper.cs
- PathSegmentCollection.cs
- PageContentCollection.cs
- RootNamespaceAttribute.cs
- ZoneLinkButton.cs
- CodeDelegateInvokeExpression.cs
- DesignerHelpers.cs
- DragEventArgs.cs
- RsaElement.cs
- EmptyEnumerator.cs
- ParameterModifier.cs
- StorageMappingItemLoader.cs
- TraceFilter.cs
- ADMembershipUser.cs
- PixelFormatConverter.cs
- TerminateDesigner.cs
- Boolean.cs
- SerTrace.cs
- RootBrowserWindowAutomationPeer.cs
- SplineKeyFrames.cs
- TreeNodeStyleCollection.cs
- LineUtil.cs
- processwaithandle.cs
- ZipPackagePart.cs
- RuntimeArgumentHandle.cs
- DBPropSet.cs
- XmlNavigatorStack.cs
- ExpressionBuilderContext.cs
- _NtlmClient.cs
- _NtlmClient.cs
- Package.cs
- NativeMethods.cs
- Restrictions.cs
- XmlDataImplementation.cs
- TargetException.cs
- KeyGesture.cs
- EncryptedReference.cs
- HeaderUtility.cs