ComputerPrincipal.FindByBadPasswordAttempt Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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.
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.