The exception that is thrown when an attempt is made to store an element of the wrong type within an array.
Assembly: mscorlib (in mscorlib.dll)
is thrown when the system cannot convert the element to the type declared for the array. For example, an element of type String cannot be stored in an Int32 array because conversion between these types is not supported. It is generally unnecessary for applications to throw this exception.
The following Microsoft intermediate language (MSIL) instructions throw :
uses the HRESULT COR_E_ARRAYTYPEMISMATCH, which has the value 0x80131503.
For a list of initial property values for an instance of , see the constructors.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.