Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CreateUserErrorEventArgs Class

Provides data for the CreateUserError event.

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

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

public ref class CreateUserErrorEventArgs : public EventArgs

The CreateUserErrorEventArgs type exposes the following members.

  NameDescription
Public methodCreateUserErrorEventArgsInitializes a new instance of the CreateUserErrorEventArgs class.
Top

  NameDescription
Public propertyCreateUserErrorGets or sets a value indicating the result of a CreatingUser event.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

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