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
- LoadGrammarCompletedEventArgs.cs
- StreamGeometryContext.cs
- WorkflowCompensationBehavior.cs
- MethodRental.cs
- TextRange.cs
- Stacktrace.cs
- EventlogProvider.cs
- XPathNodeInfoAtom.cs
- PropertyValueUIItem.cs
- DelayLoadType.cs
- EncodingTable.cs
- XhtmlConformanceSection.cs
- _DynamicWinsockMethods.cs
- ResourceLoader.cs
- CurrentChangingEventArgs.cs
- TreeBuilder.cs
- CodeTypeParameter.cs
- StringBlob.cs
- Registry.cs
- HTMLTagNameToTypeMapper.cs
- ReliableChannelFactory.cs
- HostSecurityManager.cs
- SafeNativeMethods.cs
- URLIdentityPermission.cs
- StagingAreaInputItem.cs
- HandledEventArgs.cs
- ColumnPropertiesGroup.cs
- EncodingNLS.cs
- _LocalDataStore.cs
- EntityDataSourceSelectedEventArgs.cs
- Frame.cs
- DataServiceProcessingPipelineEventArgs.cs
- OdbcConnectionFactory.cs
- RepeaterItemCollection.cs
- ContentElement.cs
- EntityDataSourceContextCreatingEventArgs.cs
- UpdatePanelControlTrigger.cs
- SqlDataSourceConfigureSortForm.cs
- Maps.cs
- BitmapEffectGroup.cs
- PointConverter.cs
- TripleDES.cs
- PeerNameResolver.cs
- PreservationFileWriter.cs
- TextElementEditingBehaviorAttribute.cs
- TextTreeRootTextBlock.cs
- TreeNodeEventArgs.cs
- AspCompat.cs
- CustomErrorsSectionWrapper.cs
- OwnerDrawPropertyBag.cs
- XamlSerializationHelper.cs
- CultureInfoConverter.cs
- SynchronousChannelMergeEnumerator.cs
- EntityTypeEmitter.cs
- RouteParser.cs
- BitConverter.cs
- UnsignedPublishLicense.cs
- TagPrefixCollection.cs
- AnnouncementSendsAsyncResult.cs
- AmbientProperties.cs
- URLIdentityPermission.cs
- TextSelectionHighlightLayer.cs
- CryptoApi.cs
- DataGridViewRowConverter.cs
- Rotation3DAnimationBase.cs
- WindowsRebar.cs
- DataColumnPropertyDescriptor.cs
- PageCache.cs
- SocketSettings.cs
- ThaiBuddhistCalendar.cs
- TouchDevice.cs
- ServiceOperationWrapper.cs
- ConfigurationSettings.cs
- PrintingPermissionAttribute.cs
- SeekableReadStream.cs
- PageAction.cs
- KeyedPriorityQueue.cs
- GridViewUpdateEventArgs.cs
- WSFederationHttpBindingElement.cs
- DataGridViewSortCompareEventArgs.cs
- PerformanceCounterTraceRecord.cs
- UnknownBitmapEncoder.cs
- TemplatedMailWebEventProvider.cs
- _AuthenticationState.cs
- httpapplicationstate.cs
- SpecularMaterial.cs
- SharedPersonalizationStateInfo.cs
- MergePropertyDescriptor.cs
- MonthCalendar.cs
- JpegBitmapDecoder.cs
- LayoutTable.cs
- RoleManagerSection.cs
- ChannelTokenTypeConverter.cs
- GeneralTransform3D.cs
- CustomMenuItemCollection.cs
- DataGridViewButtonCell.cs
- InputScopeConverter.cs
- WebSysDisplayNameAttribute.cs
- WebScriptMetadataMessageEncoderFactory.cs
- BamlResourceSerializer.cs