SqlDataSource.CancelSelectOnNullParameter SqlDataSource.CancelSelectOnNullParameter SqlDataSource.CancelSelectOnNullParameter SqlDataSource.CancelSelectOnNullParameter Property

定义

获取或设置一个值,该值指示当 SelectParameters 集合中包含的任何一个参数为 null 时,是否取消数据检索操作。Gets or sets a value indicating whether a data retrieval operation is canceled when any parameter that is contained in the SelectParameters collection evaluates to null.

public:
 virtual property bool CancelSelectOnNullParameter { bool get(); void set(bool value); };
public virtual bool CancelSelectOnNullParameter { get; set; }
member this.CancelSelectOnNullParameter : bool with get, set
Public Overridable Property CancelSelectOnNullParameter As Boolean

属性值

如果当 SelectParameters 集合中包含的某个参数为 true 时将取消数据检索操作,则为 null;否则为 falsetrue if a data retrieval operation is canceled when a parameter contained in the SelectParameters collection evaluated to null; otherwise, false. 默认值为 trueThe default is true.

注解

CancelSelectOnNullParameter属性的值存储在视图状态中。The value of the CancelSelectOnNullParameter property is stored in view state.

适用于

另请参阅