Class USPhoneComponent
Represents an US phone number input component.
public class USPhoneComponent : FormComponent<USPhoneProperties, string>
- Inheritance
-
objectUSPhoneComponent
- Inherited Members
- Extension Methods
Fields
IDENTIFIER
Represents the USPhoneComponent identifier.
public const string IDENTIFIER = "Kentico.USPhone"
Field Value
- string
Properties
PhoneNumber
Represents the input value in the resulting HTML.
public string PhoneNumber { get; set; }
Property Value
- string
Methods
GetValue()
Gets the PhoneNumber.
public override string GetValue()
Returns
- string
SetValue(string)
Sets the PhoneNumber.
public override void SetValue(string value)
Parameters
value
string
Validate(ValidationContext)
Determines whether given input is a valid US phone numbers.
public override IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
validationContext
ValidationContextThe validation context.
Returns
- IEnumerable<ValidationResult>
A collection that holds failed-validation information.