ChangePassword.UserNameRequiredErrorMessage 属性

定义

获取或设置当用户将“用户名”文本框留空时显示的错误消息。Gets or sets the error message that is displayed when the user leaves the User Name text box empty.

public:
 virtual property System::String ^ UserNameRequiredErrorMessage { System::String ^ get(); void set(System::String ^ value); };
public virtual string UserNameRequiredErrorMessage { get; set; }
member this.UserNameRequiredErrorMessage : string with get, set
Public Overridable Property UserNameRequiredErrorMessage As String

属性值

String

当用户将“用户名”文本框留空时显示的错误消息。The error message to display if the user leaves the User Name text box empty. 默认值是:必须填写“用户名”。The default string is "User Name is required.".

注解

设置此属性后,可以使用设计器工具自动将此属性的值保存到资源文件中。The value of this property, when set, can be saved automatically to a resource file by using a designer tool. 有关详细信息,请参阅 LocalizableAttribute全球化和本地化For more information, see LocalizableAttribute and Globalization and Localization.

适用于

另请参阅