SqlDataReader.IsCommandBehavior(CommandBehavior) 方法

定义

确定指定的 CommandBehavior 是否与 SqlDataReader 的对应项匹配。Determines whether the specified CommandBehavior matches that of the SqlDataReader .

protected public:
 bool IsCommandBehavior(System::Data::CommandBehavior condition);
protected:
 bool IsCommandBehavior(System::Data::CommandBehavior condition);
protected internal bool IsCommandBehavior (System.Data.CommandBehavior condition);
protected bool IsCommandBehavior (System.Data.CommandBehavior condition);
member this.IsCommandBehavior : System.Data.CommandBehavior -> bool
Protected Friend Function IsCommandBehavior (condition As CommandBehavior) As Boolean
Protected Function IsCommandBehavior (condition As CommandBehavior) As Boolean

参数

condition
CommandBehavior

一个 CommandBehavior 枚举。A CommandBehavior enumeration.

返回

Boolean

如果指定的 CommandBehavior 为 true,则为 true;否则为 falsetrue if the specified CommandBehavior is true, false otherwise.

注解

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

适用于