Int16.MinValue Field

 

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

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

static val mutable MinValue : int16

Field Value

Type: System.Int16

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.

The following example uses the MinValue property to prevent an OverflowException when converting to an Int16 value.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: