UserPrincipal.FindByBadPasswordAttempt Metoda

Definicja

Zwraca kolekcję PrincipalSearchResult<T> obiektów dla użytkowników, którzy mają nieprawidłową próbę hasła zarejestrowaną w określonym zakresie daty i godziny.

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)

Parametry

context
PrincipalContext

PrincipalContext Obiekt określający serwer lub domenę, względem której są wykonywane operacje.

time
DateTime

DateTime Obiekt identyfikujący datę i godzinę nieprawidłowego hasła. Ten parametr jest używany z parametrem typu w celu określenia zakresu czasu, w którym zwrócone obiekty mają zarejestrowane niepoprawne logowanie.

type
MatchType

MatchType Wartość wyliczenia określająca typ dopasowania, który jest stosowany do parametrutime.

Zwraca

Element PrincipalSearchResult<T> zawierający co najmniej jeden UserPrincipal obiekt lub pustą kolekcję, jeśli nie zostaną znalezione żadne wyniki.

Uwagi

Godzina domyślna to UTC. Jeśli chcesz określić godzinę w czasie lokalnym, określ Kind właściwość time obiektu jako DateTimeKind.Local.

Dotyczy