CreateUserErrorEventArgs Class

Note: This class is new in the .NET Framework version 2.0.

Provides data for the CreateUserError event.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public ref class CreateUserErrorEventArgs : public EventArgs
public class CreateUserErrorEventArgs extends EventArgs
public class CreateUserErrorEventArgs extends EventArgs

A CreateUserError event is raised when an attempt to create a new user with the CreateUserWizard control fails. The CreateUserErrorEventArgs class provides the CreateUserError property to indicate the MembershipCreateStatus enumeration value that corresponds to the error that occurred.

In the following example, when the CreateUserError event is raised, the CreateUserError property of the CreateUserErrorEventArgs object is displayed in a Label control, Label1, to provide information on why the CreateUserError event occurred.

No code example is currently available or this language may not be supported.

The following is the .aspx file that can be used to run the preceding example.

No code example is currently available or this language may not be supported.

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand. Permission value: Minimal.
  • AspNetHostingPermission  for operating in a hosted environment. Demand value: InheritanceDemand. Permission value: Minimal.

System.Object
   System.EventArgs
    System.Web.UI.WebControls.CreateUserErrorEventArgs

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: