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
- OrderToken.cs
- GroupStyle.cs
- Root.cs
- ProcessingInstructionAction.cs
- PtsPage.cs
- ContractMapping.cs
- HandlerBase.cs
- DynamicValidatorEventArgs.cs
- InfiniteTimeSpanConverter.cs
- ElementAction.cs
- WindowsComboBox.cs
- ClassImporter.cs
- DefaultBinder.cs
- Journal.cs
- ValueUnavailableException.cs
- DataBindingValueUIHandler.cs
- DriveNotFoundException.cs
- DrawingAttributes.cs
- WebRequestModulesSection.cs
- DataShape.cs
- BulletedListDesigner.cs
- RegistrationServices.cs
- Rotation3DAnimation.cs
- BooleanConverter.cs
- EntityTemplateUserControl.cs
- InstallerTypeAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- WebBrowserDocumentCompletedEventHandler.cs
- MouseGestureValueSerializer.cs
- RankException.cs
- MaskedTextBoxTextEditorDropDown.cs
- SqlUserDefinedAggregateAttribute.cs
- AsyncCompletedEventArgs.cs
- XmlAnyElementAttribute.cs
- BitmapEffectDrawing.cs
- XmlValidatingReader.cs
- XpsDigitalSignature.cs
- SiteOfOriginPart.cs
- ClientSession.cs
- DataObject.cs
- FormViewActionList.cs
- ToolStripSettings.cs
- ElementFactory.cs
- Compilation.cs
- ToolboxBitmapAttribute.cs
- BindUriHelper.cs
- GB18030Encoding.cs
- RenderDataDrawingContext.cs
- DataServiceBuildProvider.cs
- SessionState.cs
- UserControlAutomationPeer.cs
- CommentEmitter.cs
- BitStream.cs
- ILGenerator.cs
- NetworkAddressChange.cs
- InputManager.cs
- MatcherBuilder.cs
- DataGridColumn.cs
- HwndAppCommandInputProvider.cs
- CharEnumerator.cs
- FixedSOMTable.cs
- CharKeyFrameCollection.cs
- ColorConvertedBitmapExtension.cs
- FileCodeGroup.cs
- AccessKeyManager.cs
- PropertyGroupDescription.cs
- DbQueryCommandTree.cs
- DescriptionAttribute.cs
- Matrix3DConverter.cs
- DataPager.cs
- SqlBinder.cs
- EventLogTraceListener.cs
- Misc.cs
- HtmlInputImage.cs
- EntityDataSourceContextCreatingEventArgs.cs
- XmlArrayItemAttributes.cs
- SamlAuthorityBinding.cs
- CanonicalizationDriver.cs
- TraceUtility.cs
- CheckBoxRenderer.cs
- InheritanceAttribute.cs
- _OverlappedAsyncResult.cs
- ExpressionConverter.cs
- TypeLoadException.cs
- BindingElementExtensionElement.cs
- GeneratedView.cs
- SizeKeyFrameCollection.cs
- CatchBlock.cs
- Imaging.cs
- ListViewItem.cs
- Border.cs
- GridEntry.cs
- PermissionAttributes.cs
- StyleSheetDesigner.cs
- BoundsDrawingContextWalker.cs
- RelationshipManager.cs
- SID.cs
- ProcessHost.cs
- _IPv4Address.cs
- MemberPath.cs