ComputerPrincipal.FindByBadPasswordAttempt Metod

Definition

Returnerar en PrincipalSearchResult<T> samling ComputerPrincipal objekt som har haft felaktiga lösenordsförsök inom de angivna parametrarna.

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)

Parametrar

context
PrincipalContext

Som PrincipalContext anger den server eller domän mot vilken åtgärder utförs.

time
DateTime

En DateTime struktur som används tillsammans med MatchType för att hitta datorer med felaktiga lösenordsförsök.

type
MatchType

Det MatchType som anger vilken typ av jämförelse som ska användas i sökningen.

Returer

En PrincipalSearchResult<T> som innehåller ett eller flera ComputerPrincipal objekt som matchar sökparametrarna eller en tom samling om inga matchningar hittas.

Kommentarer

Tiden är som standard UTC. Om du vill ange tiden i lokal tid anger du Kind egenskapen för time objektet som Local.

Gäller för