FormatterConverter.ToByte メソッド

値を 8 ビット符号なし整数に変換します。

Public Overridable Function ToByte( _
   ByVal value As Object _) As Byte Implements IFormatterConverter.ToByte
[C#]
public virtual byte ToByte(objectvalue);
[C++]
public: virtual unsigned char ToByte(Object* value);
[JScript]
public function ToByte(
   value : Object) : Byte;

パラメータ

  • value
    変換対象のオブジェクト。

戻り値

変換後の値。type パラメータが null 参照 (Visual Basic では Nothing) の場合は null 参照 (Nothing) です。

実装

IFormatterConverter.ToByte

例外

例外の種類 条件
ArgumentNullException value パラメータが null 参照 (Visual Basic では Nothing) です。

解説

メソッドの実装は ToByte と同じです。詳細については、 ByteConvertValueType の各トピックを参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

FormatterConverter クラス | FormatterConverter メンバ | System.Runtime.Serialization 名前空間