DataReaderExtensions.GetChar(DbDataReader, String) メソッド

定義

指定した列の値を 1 文字として取得します。

public:
[System::Runtime::CompilerServices::Extension]
 static char GetChar(System::Data::Common::DbDataReader ^ reader, System::String ^ name);
public static char GetChar(this System.Data.Common.DbDataReader reader, string name);
static member GetChar : System.Data.Common.DbDataReader * string -> char
<Extension()>
Public Function GetChar (reader As DbDataReader, name As String) As Char

パラメーター

reader
DbDataReader

列の値を取得するデータ リーダー。

name
String

列の名前。

返品

指定した列の値。

例外

指定された名前が有効な列名ではありません。

指定されたキャストが無効です。

適用対象

こちらもご覧ください