次の方法で共有


Uri.FromHex メソッド

16 進数の数字に対応する 10 進数値を返します。

Public Shared Function FromHex( _
   ByVal digit As Char _) As Integer
[C#]
public static int FromHex(chardigit);
[C++]
public: static int FromHex(__wchar_tdigit);
[JScript]
public static function FromHex(
   digit : Char) : int;

パラメータ

  • digit
    変換する 16 進数の数字 (0 ~ 9、a ~ f、A ~ F)。

戻り値

指定した 16 進数の数字に対応する 1 ~ 15 の数値。

例外

例外の種類 条件
ArgumentException digit が有効な 16 進数の数字 (0 ~ 9、a ~ f、A ~ F) ではありません。

解説

FromHex メソッドは、16 進数の数字を表す文字 (0 ~ 9、a ~ f、A ~ F) を 10 進数値 (0 ~15) に変換します。この文字が有効な 16 進数の数字でない場合は、 ArgumentException が返されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

Uri クラス | Uri メンバ | System 名前空間