MinValue Field

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents the smallest possible value of Int16. This field is constant.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Const MinValue As Short
public const short MinValue
public:
literal short MinValue
static val mutable MinValue: int16
public const var MinValue : short

Remarks

The value of this constant is -32768; that is, hexadecimal 0x8000.

The MinValue property is typically used to prevent an OverflowException when converting from a numeric type with a greater lower range (such as an Int32 or an Int64) to an Int16. The example illustrates this usage.

.NET Framework Security

See Also

Reference

Int16 Structure

System Namespace