XmlConvert.ToByte(String) Metod

Definition

Konverterar String till en Byte motsvarighet.

public:
 static System::Byte ToByte(System::String ^ s);
public static byte ToByte(string s);
static member ToByte : string -> byte
Public Shared Function ToByte (s As String) As Byte

Parametrar

s
String

Sträng som ska konverteras.

Returer

En Byte motsvarighet till strängen.

Undantag

s är null.

s är inte i rätt format.

s representerar ett tal som är mindre än Byte.MinValue eller större än Byte.MaxValue.

Gäller för