ControlIDConverter.FilterControl(Control) Method

Definition

Returns a value indicating whether the control ID of the specified control is added to the TypeConverter.StandardValuesCollection that is returned by the GetStandardValues(ITypeDescriptorContext) method.

protected:
 virtual bool FilterControl(System::Web::UI::Control ^ control);
protected virtual bool FilterControl (System.Web.UI.Control control);
abstract member FilterControl : System.Web.UI.Control -> bool
override this.FilterControl : System.Web.UI.Control -> bool
Protected Overridable Function FilterControl (control As Control) As Boolean

Parameters

control
Control

The control instance to test for inclusion in the TypeConverter.StandardValuesCollection.

Returns

true in all cases.

Notes to Inheritors

The implementation of the FilterControl(Control) method returns true in all cases. Classes that derive from the ControlIDConverter override this method to provide their own filtering mechanism. For example, the AssociatedControlConverter class overrides the FilterControl(Control) method and returns true only if the control is a Web server control.

Applies to

See also