SByte.MaxValue-Feld
Stellt den größtmöglichen Wert von SByte dar. Dieses Feld ist konstant.
Dieses Feld ist nicht CLS-kompatibel.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Const MaxValue As SByte
'Usage
Dim value As SByte
value = SByte.MaxValue
public const sbyte MaxValue
public:
literal signed char MaxValue
public static final SByte MaxValue
public const var MaxValue : sbyte
Hinweise
Der Wert dieser Konstanten ist 127, entspricht hexadezimal 0x7F.
Beispiel
Das folgende Beispiel zeigt die MaxValue-Eigenschaft.
' Visual Basic does not support the constants, SByte.MaxValue and SByte.MinValue.
' Use the CLS-compliant type, Int16, instead.
Dim max, min as Int16
max = 127
min = -128
Console.WriteLine("Max byte={0}", max)
Console.WriteLine("Min byte={0}", min)
Console.WriteLine("Max signed byte={0}", SByte.MaxValue);
Console.WriteLine("Min signed byte={0}", SByte.MinValue);
Console::WriteLine( "Max signed byte={0}", SByte::MaxValue );
Console::WriteLine( "Min signed byte={0}", SByte::MinValue );
Console.WriteLine("Max signed byte={0}",
System.Convert.ToString(SByte.MaxValue));
Console.WriteLine("Min signed byte={0}",
System.Convert.ToString(SByte.MinValue));
Console.WriteLine("Max signed byte={0}", SByte.MaxValue);
Console.WriteLine("Min signed byte={0}", SByte.MinValue);
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
.NET Compact Framework
Unterstützt in: 2.0, 1.0