Class PasswordComponent
Represents a password input form component.
[ComponentAttribute(typeof(PasswordComponentAttribute))]
public sealed class PasswordComponent : FormComponent<PasswordProperties, PasswordClientProperties, string>, IFormComponent, IFormItem<IFormComponentClientProperties>, IFormItem
- Inheritance
-
objectPasswordComponent
- Implements
- Inherited Members
- Extension Methods
Constructors
PasswordComponent(ILocalizationService)
Creates a new instance of PasswordComponent
public PasswordComponent(ILocalizationService localizationService)
Parameters
localizationService
ILocalizationService
Fields
IDENTIFIER
Represents the PasswordComponent identifier.
public const string IDENTIFIER = "Kentico.Administration.Password"
Field Value
- string
Properties
ClientComponentName
Name of the front-end type implementing the UI form component.
public override string ClientComponentName { get; }
Property Value
- string
Methods
AddValidationRule(IValidationRule)
Adds a new validation rule.
public override void AddValidationRule(IValidationRule validationRule)
Parameters
validationRule
IValidationRuleValidation rule to be added.
Exceptions
- ArgumentNullException
Thrown when
validationRule
is null.
ConfigureClientProperties(PasswordClientProperties)
Configures the form component client properties.
protected override Task ConfigureClientProperties(PasswordClientProperties clientProperties)
Parameters
clientProperties
PasswordClientPropertiesThe current instance of the form component client properties.
Returns
- Task
Remarks
Override this method in order to configure form component client properties.