New validity period must be set in the following format: "5 years". As for validity period units the following values are allowed: hours, days, weeks, months and years. All unit qualifiers must be specified in plural form.
public string ValidityPeriod { get; set; }Public Property ValidityPeriod As String
Get
Setpublic:
property String^ ValidityPeriod {
String^ get ();
void set (String^ value);
}member ValidityPeriod : string with get, set| FormatException | The string assigned to the property does not match required pattern. |