EasClientSecurityPolicy.PasswordExpiration Property

Definition

Note

EasClientSecurityPolicy may be unavailable for releases after Windows 10.

Gets or set the length of time that a password is valid. The MS-ASPROV name is DevicePasswordExpiration.

The PasswordExpiration property is superseded by the MS-ASPROV DevicePasswordEnabled policy. If the caller received DevicePasswordEnabled equal to FALSE, do not set the PasswordExpiration property for evaluation or application. If the caller received DevicePasswordEnabled equal to TRUE, you can set the PasswordExpiration property for evaluation or application.

public:
 property TimeSpan PasswordExpiration { TimeSpan get(); void set(TimeSpan value); };
TimeSpan PasswordExpiration();

void PasswordExpiration(TimeSpan value);
public System.TimeSpan PasswordExpiration { get; set; }
var timeSpan = easClientSecurityPolicy.passwordExpiration;
easClientSecurityPolicy.passwordExpiration = timeSpan;
Public Property PasswordExpiration As TimeSpan

Property Value

The length of time before the password expires and must be reset.

Applies to