XmlConvert.ToByte(String) 方法

定義

將 轉換為StringByte等效的。

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

適用於