System.Web.Security.MembershipCreateUserException Class

The exception that is thrown when a user is not successfully created by a membership provider.

See Also: MembershipCreateUserException Members

Syntax

public class MembershipCreateUserException : Exception

Remarks

An instance of the System.Web.Security.MembershipCreateUserException class is thrown when a erload:System.Web.Security.Membership.CreateUser operation fails.

Note:

If you are not familiar with the membership features of ASP.NET, see Introduction to Membership before continuing. For a list of other topics related to membership, see Managing Users By Using Membership.

The MembershipCreateUserException.StatusCode property indicates the reason for the exception so you can handle it appropriately.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0