Freigeben über


XmlConvert.ToSByte-Methode

Konvertiert die String in ein SByte-Äquivalent.

Diese Methode ist nicht CLS-kompatibel.  

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Shared Function ToSByte ( _
    s As String _
) As SByte
'Usage
Dim s As String
Dim returnValue As SByte

returnValue = XmlConvert.ToSByte(s)
[CLSCompliantAttribute(false)] 
public static sbyte ToSByte (
    string s
)
[CLSCompliantAttribute(false)] 
public:
static signed char ToSByte (
    String^ s
)
/** @attribute CLSCompliantAttribute(false) */ 
public static SByte ToSByte (
    String s
)
CLSCompliantAttribute(false) 
public static function ToSByte (
    s : String
) : sbyte

Parameter

  • s
    Die zu konvertierende Zeichenfolge.

Rückgabewert

Ein SByte-Äquivalent der Zeichenfolge.

Ausnahmen

Ausnahmetyp Bedingung

ArgumentNullException

s ist NULL (Nothing in Visual Basic).

FormatException

s weist nicht das richtige Format auf.

OverflowException

s stellt eine Zahl dar, die kleiner als SByte.MinValue oder größer als SByte.MaxValue ist.

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

Siehe auch

Referenz

XmlConvert-Klasse
XmlConvert-Member
System.Xml-Namespace