LockoutOptions.MaxFailedAccessAttempts 屬性

定義

取得或設定在使用者鎖定之前允許的失敗存取嘗試次數,假設已啟用鎖定。 預設值為 5。

public:
 property int MaxFailedAccessAttempts { int get(); void set(int value); };
public int MaxFailedAccessAttempts { get; set; }
member this.MaxFailedAccessAttempts : int with get, set
Public Property MaxFailedAccessAttempts As Integer

屬性值

如果已啟用鎖定,則會在使用者鎖定之前允許的失敗存取嘗試次數。

備註

在帳戶遭到鎖定之前,預設為 5 次失敗的嘗試。

適用於