DataReaderExtensions.GetBoolean(DbDataReader, String) 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定列的布尔值形式的值。
public:
[System::Runtime::CompilerServices::Extension]
 static bool GetBoolean(System::Data::Common::DbDataReader ^ reader, System::String ^ name);
	public static bool GetBoolean (this System.Data.Common.DbDataReader reader, string name);
	static member GetBoolean : System.Data.Common.DbDataReader * string -> bool
	<Extension()>
Public Function GetBoolean (reader As DbDataReader, name As String) As Boolean
	参数
- reader
 - DbDataReader
 
要从中获取列值的数据读取器。
- name
 - String
 
列的名称。
返回
指定列的值。
例外
指定的名称不是有效的列名。
指定的强制转换无效。