Share via


ComputerPrincipal.FindByLockoutTime Metoda

Definice

Vrátí kolekci PrincipalSearchResult<T>ComputerPrincipal objektů, které mají dobu uzamčení v zadaném datu a časovém rozsahu.

public:
 static System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::ComputerPrincipal ^> ^ FindByLockoutTime(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
public static System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal> FindByLockoutTime (System.DirectoryServices.AccountManagement.PrincipalContext context, DateTime time, System.DirectoryServices.AccountManagement.MatchType type);
static member FindByLockoutTime : System.DirectoryServices.AccountManagement.PrincipalContext * DateTime * System.DirectoryServices.AccountManagement.MatchType -> System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal>
Public Shared Function FindByLockoutTime (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 filtrem MatchType výsledků hledání.

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í parametrům hledání, 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