BaseValidator.ControlToValidate 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置要验证的控件的 ID。 默认值为 Empty。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅
public:
property System::String ^ ControlToValidate { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.ValidatedMobileControlConverter))]
public string ControlToValidate { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.Design.MobileControls.Converters.ValidatedMobileControlConverter))>]
member this.ControlToValidate : string with get, set
Public Property ControlToValidate As String
属性值
要验证的控件的 ID。
- 属性
注解
如果 ID 为空或无效,在预呈现期间引发异常。