SqlDataReader.IsCommandBehavior(CommandBehavior) 方法

定義

判斷指定的 CommandBehavior 是否與 SqlDataReader 的行為相符。Determines whether the specified CommandBehavior matches that of the SqlDataReader .

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

參數

condition
CommandBehavior

CommandBehavior 列舉型別。A CommandBehavior enumeration.

傳回

如果指定的 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.

適用於

另請參閱