SqlDataReader.IsCommandBehavior(CommandBehavior) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定的 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 -> boolProtected Function IsCommandBehavior (condition As CommandBehavior) As BooleanProtected Friend Function IsCommandBehavior (condition As CommandBehavior) As Boolean参数
- condition
- CommandBehavior
一个 CommandBehavior 枚举。
返回
如果指定的 CommandBehavior 为 true,则为 true;否则为 false。
注解
此成员支持 .NET Framework 结构,不能在代码中直接使用。