SqlDataReader.IsCommandBehavior(CommandBehavior) 方法

定義

判斷指定的 CommandBehavior 是否與 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 列舉。

傳回

如果指定的 CommandBehavior 為 true,則為 true,否則為 false

備註

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。

適用於

另請參閱