AuthenticablePrincipal.FindByBadPasswordAttempt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FindByBadPasswordAttempt(PrincipalContext, DateTime, MatchType) |
傳回驗證主體物件的集合,這些驗證主體物件在指定的日期和時間範圍內有使用不正確密碼的記錄。 |
FindByBadPasswordAttempt<T>(PrincipalContext, DateTime, MatchType) |
傳回物件的 PrincipalSearchResult<T> 集合,含有於指定的日期和時間範圍內不正確的密碼嘗試。 這是要實作這項功能的延伸類別範本函式。 |
FindByBadPasswordAttempt(PrincipalContext, DateTime, MatchType)
傳回驗證主體物件的集合,這些驗證主體物件在指定的日期和時間範圍內有使用不正確密碼的記錄。
public:
static System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::AuthenticablePrincipal ^> ^ FindByBadPasswordAttempt(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
public static System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.AuthenticablePrincipal> 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.AuthenticablePrincipal>
Public Shared Function FindByBadPasswordAttempt (context As PrincipalContext, time As DateTime, type As MatchType) As PrincipalSearchResult(Of AuthenticablePrincipal)
參數
- context
- PrincipalContext
針對執行的作業指定伺服器或網域的 PrincipalContext 物件。
傳回
PrincipalSearchResult<T>,包含一或多個 AuthenticablePrincipal 物件,如果找不到任何結果則為空集合。
備註
時間預設為UTC。 如果您要以當地時間指定時間,請將 物件的 屬性time
指定Kind為 Local。
適用於
FindByBadPasswordAttempt<T>(PrincipalContext, DateTime, MatchType)
傳回物件的 PrincipalSearchResult<T> 集合,含有於指定的日期和時間範圍內不正確的密碼嘗試。 這是要實作這項功能的延伸類別範本函式。
protected:
generic <typename T>
static System::DirectoryServices::AccountManagement::PrincipalSearchResult<T> ^ FindByBadPasswordAttempt(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
protected static System.DirectoryServices.AccountManagement.PrincipalSearchResult<T> FindByBadPasswordAttempt<T> (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<'T>
Protected Shared Function FindByBadPasswordAttempt(Of T) (context As PrincipalContext, time As DateTime, type As MatchType) As PrincipalSearchResult(Of T)
類型參數
- T
參數
- context
- PrincipalContext
針對執行的作業指定伺服器或網域的 PrincipalContext。
傳回
PrincipalSearchResult<T>,其中包含一或多個適當主體類型的物件,或如果找不到符合結果,則為空集合。
備註
時間預設為UTC。 如果您要以當地時間指定時間,請將 物件的 屬性time
指定Kind為 DateTimeKind.Local。