Language

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 。

戻り値

検索パラメーターに一致する 1 つ以上のPrincipalSearchResult<T> オブジェクトを含むComputerPrincipal。一致するものが見つからない場合は空のコレクション。

注釈

時刻は既定で UTC になります。 現地時刻で時刻を指定する場合は、Kind オブジェクトの time プロパティをLocalとして指定します。

適用対象