ComputerPrincipal.FindByPasswordSetTime Метод

Определение

Возвращает коллекцию PrincipalSearchResult<T> объектов ComputerPrincipal, для которых время установки пароля находится внутри заданного диапазона дат и времени.

public:
 static System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::ComputerPrincipal ^> ^ FindByPasswordSetTime(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
public static System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal> FindByPasswordSetTime (System.DirectoryServices.AccountManagement.PrincipalContext context, DateTime time, System.DirectoryServices.AccountManagement.MatchType type);
static member FindByPasswordSetTime : System.DirectoryServices.AccountManagement.PrincipalContext * DateTime * System.DirectoryServices.AccountManagement.MatchType -> System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal>
Public Shared Function FindByPasswordSetTime (context As PrincipalContext, time As DateTime, type As MatchType) As PrincipalSearchResult(Of ComputerPrincipal)

Параметры

context
PrincipalContext

Объект PrincipalContext, определяющий сервер или домен, в отношении которого выполняются операции.

time
DateTime

Структура DateTime, используемая совместно с объектом MatchType для фильтрации результатов поиска.

type
MatchType

Объект MatchType, указывающий тип сравнения, который используется при поиске.

Возвращаемое значение

Коллекция PrincipalSearchResult<T>, которая содержит один или несколько объектов ComputerPrincipal, соответствующих параметрам поиска, или пустая коллекция, если соответствий не найдено.

Комментарии

Время по умолчанию будет в формате UTC. Если вы хотите указать время в местном времени, укажите Kind свойство объекта как timeLocal.

Применяется к