UserPrincipal.FindByBadPasswordAttempt 메서드

정의

잘못된 암호 시도가 지정된 날짜 및 시간 범위 내에 속하는 사용자의 PrincipalSearchResult<T> 개체 컬렉션을 반환합니다.

public:
 static System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::UserPrincipal ^> ^ FindByBadPasswordAttempt(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
public static System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.UserPrincipal> FindByBadPasswordAttempt (System.DirectoryServices.AccountManagement.PrincipalContext context, DateTime time, System.DirectoryServices.AccountManagement.MatchType type);
static member FindByBadPasswordAttempt : System.DirectoryServices.AccountManagement.PrincipalContext * DateTime * System.DirectoryServices.AccountManagement.MatchType -> System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.UserPrincipal>
Public Shared Function FindByBadPasswordAttempt (context As PrincipalContext, time As DateTime, type As MatchType) As PrincipalSearchResult(Of UserPrincipal)

매개 변수

context
PrincipalContext

작업이 수행되는 서버 또는 도메인을 지정하는 PrincipalContext 개체입니다.

time
DateTime

잘못된 암호 시도의 날짜 및 시간을 식별하는 DateTime 개체입니다. 이 매개 변수는 반환된 개체의 잘못된 로그온 시도가 기록되는 시간 범위를 확인하기 위해 형식 매개 변수와 함께 사용됩니다.

type
MatchType

time 매개 변수에 적용되는 일치 유형을 지정하는 MatchType 열거형 값입니다.

반환

하나 이상의 UserPrincipal 개체를 포함하는 PrincipalSearchResult<T>이거나 결과가 없는 경우 빈 컬렉션입니다.

설명

시간은 기본적으로 UTC로 설정됩니다. 현지 시간으로 시간을 지정하려면 개체의 time 속성을 로 DateTimeKind.Local지정 Kind 합니다.

적용 대상