Freigeben über


XmlConvert.ToUInt32-Methode

Konvertiert die String in ein UInt32-Äquivalent.

Diese Methode ist nicht CLS-kompatibel.  

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

Syntax

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

returnValue = XmlConvert.ToUInt32(s)
[CLSCompliantAttribute(false)] 
public static uint ToUInt32 (
    string s
)
[CLSCompliantAttribute(false)] 
public:
static unsigned int ToUInt32 (
    String^ s
)
/** @attribute CLSCompliantAttribute(false) */ 
public static UInt32 ToUInt32 (
    String s
)
CLSCompliantAttribute(false) 
public static function ToUInt32 (
    s : String
) : uint

Parameter

  • s
    Die zu konvertierende Zeichenfolge.

Rückgabewert

Ein UInt32-Ä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 UInt32.MinValue oder größer als UInt32.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