The exception that is thrown when there is an attempt to divide an integral or decimal value by zero.
Assembly: mscorlib (in mscorlib.dll)
Dividing a floating-point value by zero will result in either positive infinity, negative infinity, or Not-a-Number (NaN) according to the rules of IEEE 754 arithmetic. Floating-point operations never throw an exception. For more information, see Single and Double.
The following Microsoft intermediate language (MSIL) instructions throw :
uses the HRESULT COR_E_DIVIDEBYZERO, which has the value 0x80020012.
For a list of initial property values for an instance of , see the DivideByZeroException 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.