New validity period must be set in the following format: "5 years". As for validity period units the following values are alloved: 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
Set
public:
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. |