BoundField.ValidateSupportsCallback 方法

定义

确定包含在 BoundField 对象中的控件是否支持回调。Determines whether the controls contained in a BoundField object support callbacks.

public:
 override void ValidateSupportsCallback();
public override void ValidateSupportsCallback ();
override this.ValidateSupportsCallback : unit -> unit
Public Overrides Sub ValidateSupportsCallback ()

注解

ValidateSupportsCallback方法是一个帮助器方法,用于确定包含在对象中的控件是否 BoundField 支持回调。The ValidateSupportsCallback method is a helper method used to determine whether the controls contained in a BoundField object support callbacks. 此方法已实现为空方法 (一个方法,该方法不包含任何代码) 以指示支持回调。This method has been implemented as an empty method (a method that does not contain any code) to indicate that callbacks are supported.

备注

此方法主要由控件开发人员使用。This method is used primarily by control developers.

继承者说明

从类派生的类 BoundField 可以重写此方法,以指示字段包含的控件是否支持回调。Classes that derive from the BoundField class can override this method to indicate whether the controls contained by the field support callbacks. 若要指示支持回调,请将此方法实现为空方法,该方法不会引发异常;否则,将引发异常,并提供有用的消息,说明不支持回调的原因。To indicate that callbacks are supported, implement this method as an empty method that does not throw an exception; otherwise, throw an exception with a useful message describing why callbacks are not supported.

适用于

另请参阅