WebSecurity - GetPasswordChangeDate()


❮ 웹보안

정의

GetPasswordChangeDate() 메서드 는 사용자의 암호가 마지막으로 변경된 날짜와 시간을 반환합니다.


C# 및 VB 구문

WebSecurity.GetPasswordChangedDate(userName)

매개변수

Parameter Type Description
userName String The user name

반환 값

Type Description
DateTime

The date and time the password was last changed


오류 및 예외

WebSecurity 개체 에 대한 모든 액세스는 다음과 같은 경우 InvalidOperationException 을 발생시킵니다 .

  • InitializeDatabaseConnection() 메서드가 호출되지 않았습니다 .
  • SimpleMembership 이 초기화되지 않았습니다(또는 웹사이트 구성에서 비활성화됨).

비고

암호가 변경된 적이 없는 경우 GetPasswordChangeDate() 메서드는 DateTime.MinValue 를 반환합니다 .

DateTime.MinValue의 값은 0001년 1월 1일 00:00:00.0000000입니다.


❮ 웹보안