ControlIDConverter.FilterControl(Control) Método
Definição
Retorna um valor que indica se a ID de controle do controle especificado é adicionada à TypeConverter.StandardValuesCollection retornada pelo método GetStandardValues(ITypeDescriptorContext).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
Parâmetros
- control
- Control
A instância de controle a ser testada para inclusão na TypeConverter.StandardValuesCollection.The control instance to test for inclusion in the TypeConverter.StandardValuesCollection.
Retornos
true em todos os casos.true in all cases.
Notas aos Herdeiros
A implementação do FilterControl(Control) método retorna true em todos os casos.The implementation of the FilterControl(Control) method returns true in all cases. Classes que derivam da ControlIDConverter substituição esse método para fornecer seu próprio mecanismo de filtragem.Classes that derive from the ControlIDConverter override this method to provide their own filtering mechanism. Por exemplo, a AssociatedControlConverter classe substitui o FilterControl(Control) método e retorna true somente se o controle for um controle de servidor Web.For example, the AssociatedControlConverter class overrides the FilterControl(Control) method and returns true only if the control is a Web server control.