CreateUserWizard.CreateUserError 事件

定義

發生於成員資格提供者無法建立指定的使用者帳戶時。Occurs when the membership provider cannot create the specified user account.

public:
 event System::Web::UI::WebControls::CreateUserErrorEventHandler ^ CreateUserError;
public event System.Web.UI.WebControls.CreateUserErrorEventHandler CreateUserError;
member this.CreateUserError : System.Web.UI.WebControls.CreateUserErrorEventHandler 
Public Custom Event CreateUserError As CreateUserErrorEventHandler 

事件類型

CreateUserErrorEventHandler

備註

CreateUserError當屬性中指定的成員資格提供者 MembershipProvider 無法建立指定的使用者帳戶時,該事件會在伺服器上引發。The CreateUserError event is raised on the server when the membership provider specified in the MembershipProvider property fails to create the specified user account.

錯誤處理常式會傳遞 MembershipCreateStatus 物件,其中包含成員資格提供者之失敗的詳細資料。The error handler is passed a MembershipCreateStatus object that contains the details of the failure from the membership provider. 如需可能的錯誤狀況清單,請參閱 MembershipCreateStatusFor a list of the possible error conditions, see MembershipCreateStatus.

如需如何處理事件的詳細資訊,請參閱 處理和引發事件For more information about how to handle events, see Handling and Raising Events.

適用於

另請參閱