XmlConvert.ToByte(String) 方法

定义

String将转换为等效项Byte

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

参数

s
String

要转换的字符串。

返回

Byte字符串的等效项。

例外

snull

s 格式不正确。

s 表示小于 Byte.MinValue 或大于 Byte.MaxValue 的数字。

适用于