UserPrincipal.FindByBadPasswordAttempt Metoda

Definice

Vrátí kolekci PrincipalSearchResult<T> objektů pro uživatele, kteří mají v zadaném časovém a časovém rozsahu zaznamenaný nesprávný pokus o heslo.

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

Objekt PrincipalContext , který určuje server nebo doménu, se kterou se provádějí operace.

time
DateTime

Zkuste DateTime použít objekt, který identifikuje datum a čas nesprávného hesla. Tento parametr se používá spolu s parametrem typu k určení časového rozsahu, ve kterém mají vrácené objekty nesprávně zaznamenaný pokus o přihlášení.

type
MatchType

Hodnota MatchType výčtu, která určuje typ shody, který je použit na time parametr.

Návraty

A PrincipalSearchResult<T> , která obsahuje jeden nebo více UserPrincipal objektů, nebo prázdnou kolekci, pokud nejsou nalezeny žádné výsledky.

Poznámky

Výchozí čas bude UTC. Pokud chcete zadat čas v místním čase, zadejte Kind vlastnost objektu time jako DateTimeKind.Local.

Platí pro