CommandField.ValidateSupportsCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the controls contained in a CommandField object support callbacks.
public:
override void ValidateSupportsCallback();
public override void ValidateSupportsCallback();
override this.ValidateSupportsCallback : unit -> unit
Public Overrides Sub ValidateSupportsCallback ()
The Select button is displayed in the CommandField object. The CommandField class does support callbacks when the Select button is displayed.
The ValidateSupportsCallback method is a helper method used to determine whether the controls contained in a CommandField object support callbacks. The CommandField class does not support callbacks when the Select button is displayed. This method has been implemented to throw a NotSupportedException exception when the Select button is displayed.
Note
This method is used primarily by control developers.
Classes that derive from the CommandField 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.
Applies to
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: