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
- XmlSchemaCompilationSettings.cs
- FunctionImportMapping.cs
- _UncName.cs
- BamlMapTable.cs
- CaseInsensitiveComparer.cs
- CodeEntryPointMethod.cs
- NotifyInputEventArgs.cs
- mediapermission.cs
- MediaScriptCommandRoutedEventArgs.cs
- CompilerGeneratedAttribute.cs
- PageSetupDialog.cs
- XmlLanguage.cs
- TemplateNodeContextMenu.cs
- AssemblyName.cs
- MergeFailedEvent.cs
- SmiRequestExecutor.cs
- FixedFlowMap.cs
- UntypedNullExpression.cs
- TargetControlTypeAttribute.cs
- ProviderConnectionPointCollection.cs
- ObjectItemCachedAssemblyLoader.cs
- ImportFileRequest.cs
- ClientRoleProvider.cs
- PlainXmlSerializer.cs
- TTSEngineProxy.cs
- WeakEventManager.cs
- ActivityFunc.cs
- BoolExpressionVisitors.cs
- HyperLink.cs
- TabRenderer.cs
- InvalidOleVariantTypeException.cs
- PngBitmapDecoder.cs
- ValueExpressions.cs
- ControlSerializer.cs
- StoreItemCollection.cs
- ExpressionBindingCollection.cs
- QueryStringParameter.cs
- NamedPipeActivation.cs
- ObjectParameter.cs
- HttpRuntime.cs
- TypeElement.cs
- FollowerQueueCreator.cs
- SqlInternalConnectionSmi.cs
- ProfileSection.cs
- Activity.cs
- ScriptingRoleServiceSection.cs
- DES.cs
- MouseButtonEventArgs.cs
- ScriptControlManager.cs
- MimeXmlReflector.cs
- Point4DConverter.cs
- OdbcConnectionHandle.cs
- BindingContext.cs
- GroupDescription.cs
- AddInBase.cs
- HMACSHA256.cs
- NotImplementedException.cs
- ResourceCategoryAttribute.cs
- ExtendedPropertyInfo.cs
- ProcessMessagesAsyncResult.cs
- UserControlAutomationPeer.cs
- BamlRecordHelper.cs
- NonBatchDirectoryCompiler.cs
- BaseComponentEditor.cs
- CrossAppDomainChannel.cs
- VariableDesigner.xaml.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- RpcAsyncResult.cs
- XmlSchemaAttributeGroupRef.cs
- ListItemsCollectionEditor.cs
- AdRotator.cs
- FreezableDefaultValueFactory.cs
- RepeaterItemEventArgs.cs
- DefinitionUpdate.cs
- DbConnectionStringBuilder.cs
- TransactionScope.cs
- StateDesigner.Layouts.cs
- assemblycache.cs
- AccessedThroughPropertyAttribute.cs
- TabItemAutomationPeer.cs
- OdbcConnectionStringbuilder.cs
- TextContainer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PointLightBase.cs
- Activity.cs
- SoapAttributeAttribute.cs
- MimeMultiPart.cs
- ControlsConfig.cs
- MultipleViewProviderWrapper.cs
- RepeaterDesigner.cs
- CreationContext.cs
- MergeFilterQuery.cs
- CacheAxisQuery.cs
- CollectionViewProxy.cs
- HttpCachePolicy.cs
- SystemWebCachingSectionGroup.cs
- HwndStylusInputProvider.cs
- Utility.cs
- CuspData.cs
- ServiceBusyException.cs