1<?xml version="1.0" encoding="utf-8"?> 2<Type Name="ValidatedControlConverter" FullName="System.Web.UI.WebControls.ValidatedControlConverter"> 3 <TypeSignature Language="C#" Maintainer="auto" Value="public class ValidatedControlConverter : System.Web.UI.WebControls.ControlIDConverter" /> 4 <AssemblyInfo> 5 <AssemblyName>System.Web</AssemblyName> 6 <AssemblyPublicKey> 7 </AssemblyPublicKey> 8 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 9 <AssemblyVersion>2.0.0.0</AssemblyVersion> 10 </AssemblyInfo> 11 <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement> 12 <Base> 13 <BaseTypeName>System.Web.UI.WebControls.ControlIDConverter</BaseTypeName> 14 </Base> 15 <Interfaces /> 16 <Docs> 17 <remarks> 18 <attribution license="cc4" from="Microsoft" modified="false" /> 19 <para>Not all controls can be validated with a validation control. This class creates a collection of control IDs on the Web Forms page that can be associated with a validation control. This collection is commonly used in a designer to display a list of controls on the Web Forms page that can be associated with a validation control.</para> 20 <para>When creating your own validation control, you can enable the designer to display a list of controls that support validation controls. Simply add an attribute to the string property that represents the control to validate, as follows: </para> 21 <code><TypeConverter(GetType(ValidatedControlConverter))> _ 22 Public Property ControlToValidate() As String 23 Get 24 // Add code to get the ID of the control to validate. 25 End Get 26 Set 27 // Add code to set the ID of the control to validate. 28 End Set 29 End Property</code> 30 <code>[TypeConverter(typeof(ValidatedControlConverter))] 31 public string ControlToValidate 32 { 33 get 34 { 35 // Add code to get the ID of the control to validate. 36 } 37 set 38 { 39 // Add code to set the ID of the control to validate. 40 } 41 }</code> 42 </remarks> 43 <summary> 44 <attribution license="cc4" from="Microsoft" modified="false" /> 45 <para>Converts a control on the Web Forms page that can be validated with a validation control to a string containing the control's ID.</para> 46 </summary> 47 </Docs> 48 <Members> 49 <Member MemberName=".ctor"> 50 <MemberSignature Language="C#" Value="public ValidatedControlConverter ();" /> 51 <MemberType>Constructor</MemberType> 52 <ReturnValue /> 53 <Parameters /> 54 <Docs> 55 <remarks>To be added</remarks> 56 <summary> 57 <attribution license="cc4" from="Microsoft" modified="false" /> 58 <para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.ValidatedControlConverter" /> class. </para> 59 </summary> 60 </Docs> 61 <AssemblyInfo> 62 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 63 <AssemblyVersion>2.0.0.0</AssemblyVersion> 64 </AssemblyInfo> 65 </Member> 66 <Member MemberName="FilterControl"> 67 <MemberSignature Language="C#" Value="protected override bool FilterControl (System.Web.UI.Control control);" /> 68 <MemberType>Method</MemberType> 69 <AssemblyInfo> 70 <AssemblyVersion>2.0.0.0</AssemblyVersion> 71 </AssemblyInfo> 72 <ReturnValue> 73 <ReturnType>System.Boolean</ReturnType> 74 </ReturnValue> 75 <Parameters> 76 <Parameter Name="control" Type="System.Web.UI.Control" /> 77 </Parameters> 78 <Docs> 79 <remarks> 80 <attribution license="cc4" from="Microsoft" modified="false" /> 81 <para>When the <see cref="M:System.Web.UI.WebControls.ValidatedControlConverter.FilterControl(System.Web.UI.Control)" /> method returns true, the <see cref="T:System.Web.UI.WebControls.ValidatedControlConverter" /> instance will add the ID of the control specified in the control parameter to the <see cref="T:System.ComponentModel.TypeConverter.StandardValuesCollection" /> returned by the <see cref="M:System.Web.UI.WebControls.ControlIDConverter.GetStandardValues(System.ComponentModel.ITypeDescriptorContext)" /> method.</para> 82 </remarks> 83 <summary> 84 <attribution license="cc4" from="Microsoft" modified="false" /> 85 <para>Returns a value indicating whether the specified control should be added to the list of controls that can be validated.</para> 86 </summary> 87 <returns> 88 <attribution license="cc4" from="Microsoft" modified="false" /> 89 <para>true if the control should be added to the list of controls that can be validated; otherwise, false.</para> 90 </returns> 91 <param name="control"> 92 <attribution license="cc4" from="Microsoft" modified="false" />The control to check. </param> 93 </Docs> 94 </Member> 95 <Member MemberName="GetStandardValues"> 96 <MemberSignature Language="C#" Value="public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues (System.ComponentModel.ITypeDescriptorContext context);" /> 97 <MemberType>Method</MemberType> 98 <ReturnValue> 99 <ReturnType>System.ComponentModel.TypeConverter+StandardValuesCollection</ReturnType> 100 </ReturnValue> 101 <Parameters> 102 <Parameter Name="context" Type="System.ComponentModel.ITypeDescriptorContext" /> 103 </Parameters> 104 <Docs> 105 <param name="context">a <see cref="T:System.ComponentModel.ITypeDescriptorContext" /></param> 106 <summary>To be added</summary> 107 <returns>a <see cref="T:System.ComponentModel.TypeConverter+StandardValuesCollection" /></returns> 108 <remarks>To be added</remarks> 109 </Docs> 110 <AssemblyInfo> 111 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 112 <AssemblyVersion>2.0.0.0</AssemblyVersion> 113 </AssemblyInfo> 114 </Member> 115 <Member MemberName="GetStandardValuesExclusive"> 116 <MemberSignature Language="C#" Value="public override bool GetStandardValuesExclusive (System.ComponentModel.ITypeDescriptorContext context);" /> 117 <MemberType>Method</MemberType> 118 <ReturnValue> 119 <ReturnType>System.Boolean</ReturnType> 120 </ReturnValue> 121 <Parameters> 122 <Parameter Name="context" Type="System.ComponentModel.ITypeDescriptorContext" /> 123 </Parameters> 124 <Docs> 125 <param name="context">a <see cref="T:System.ComponentModel.ITypeDescriptorContext" /></param> 126 <summary>To be added</summary> 127 <returns>a <see cref="T:System.Boolean" /></returns> 128 <remarks>To be added</remarks> 129 </Docs> 130 <AssemblyInfo> 131 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 132 <AssemblyVersion>2.0.0.0</AssemblyVersion> 133 </AssemblyInfo> 134 </Member> 135 <Member MemberName="GetStandardValuesSupported"> 136 <MemberSignature Language="C#" Value="public override bool GetStandardValuesSupported (System.ComponentModel.ITypeDescriptorContext context);" /> 137 <MemberType>Method</MemberType> 138 <ReturnValue> 139 <ReturnType>System.Boolean</ReturnType> 140 </ReturnValue> 141 <Parameters> 142 <Parameter Name="context" Type="System.ComponentModel.ITypeDescriptorContext" /> 143 </Parameters> 144 <Docs> 145 <param name="context">a <see cref="T:System.ComponentModel.ITypeDescriptorContext" /></param> 146 <summary>To be added</summary> 147 <returns>a <see cref="T:System.Boolean" /></returns> 148 <remarks>To be added</remarks> 149 </Docs> 150 <AssemblyInfo> 151 <AssemblyVersion>1.0.5000.0</AssemblyVersion> 152 <AssemblyVersion>2.0.0.0</AssemblyVersion> 153 </AssemblyInfo> 154 </Member> 155 </Members> 156</Type>