SqlDataReader.IsCommandBehavior(CommandBehavior) 方法

定义

确定指定的 CommandBehavior 匹配项是否与 . SqlDataReader .

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

参数

condition
CommandBehavior

CommandBehavior枚举。

返回

true 如果指定 CommandBehavior 为 true,则为 true, false 否则为 true。

注解

此成员支持 .NET Framework 基础结构,不应直接从代码使用。

适用于

另请参阅