Name
Int16
Synopsis
This is the value type for 16-bit
integers (which can range from -32768 to
32767). This is also available in
VB.NET through the Short
alias.
Public Structure Int16 : Implements IComparable, IFormattable, IConvertible ' Public Shared Fields Public const MaxValue As Short // =32767 Public const MinValue As Short // =-32768 ' Public Shared Methods Public Shared Function Parse( ByVal s As String) As Short Public Shared Function Parse(ByVal s As String, ByVal provider As IFormatProvider) As Short Public Shared Function Parse(ByVal s As String, ByVal style As System.Globalization.NumberStyles) As Short Public Shared Function Parse(ByVal s As String, ByVal style As System.Globalization.NumberStyles, ByVal provider As IFormatProvider) As Short ' Public Instance Methods Public Function CompareTo( ByVal value As Object) As Integer Implements IComparable.CompareTo Overrides Public Function Equals( ByVal obj As Object) As Boolean Overrides Public Function GetHashCode() As Integer Public Function GetTypeCode( ) As TypeCode Implements IConvertible.GetTypeCode Overrides Public Function ToString() As String Public Function ToString( ByVal provider As IFormatProvider) As String Implements IConvertible.ToString Public Function ToString(ByVal format As String) As String Public Function ToString(ByVal format As String, ByVal provider As IFormatProvider) As String Implements IFormattable.ToString End Structure
Hierarchy
Object→ValueType→ Int16(IComparable
, IFormattable
, IConvertible) ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.