DataReaderExtensions.GetChar(DbDataReader, String) 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
作为单个字符获取指定列的值。
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
 
列的名称。
返回
指定列的值。
例外
指定的名称不是有效的列名。
指定的强制转换无效。