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的數位。

適用於