Sdílet prostřednictvím


ComputerPrincipal.FindByBadPasswordAttempt Metoda

Definice

Vrátí kolekci PrincipalSearchResult<T>ComputerPrincipal objektů, u kterých došlo k chybnému pokusu o zadání hesla v rámci zadaných parametrů.

public:
 static System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::ComputerPrincipal ^> ^ FindByBadPasswordAttempt(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
public static System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal> 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.ComputerPrincipal>
Public Shared Function FindByBadPasswordAttempt (context As PrincipalContext, time As DateTime, type As MatchType) As PrincipalSearchResult(Of ComputerPrincipal)

Parametry

context
PrincipalContext

Určuje PrincipalContext server nebo doménu, se kterou se operace provádějí.

time
DateTime

Struktura DateTime , která se používá ve spojení s objektem MatchType k vyhledání počítačů s neúspěšnými pokusy o zadání hesla.

type
MatchType

Určuje MatchType typ porovnání, který se má použít při hledání.

Návraty

A PrincipalSearchResult<T> obsahující jeden nebo více ComputerPrincipal objektů, které odpovídají vyhledávacím parametrům, nebo prázdnou kolekci, pokud nejsou nalezeny žádné shody.

Poznámky

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

Platí pro