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 真, false 否則。

備註

此成員支援 .NET Framework 基礎架構,並非直接從您的程式碼中使用。

適用於

另請參閱