What is Membership.GeneratePassword Method?

 Using Membership.GeneratePassword Method we can create a random password according to our requirement,
Syntax:-
public static string GeneratePassword(
            int length,
            int numberOfNonAlphanumericCharacters
)


Length:- 
The number of characters in the generated password. The length must be between 1 and 128 characters.

Type: System.Int32



NumberOfNonAlphanumericCharacters:-
The minimum number of non-alphanumeric characters (such as @, #, !, %, &, and so on) in the generated password.

Type: System.Int32

  

What is Membership.GeneratePassword Method? What is Membership.GeneratePassword Method? Reviewed by NEERAJ SRIVASTAVA on 6:23:00 PM Rating: 5

No comments:

Powered by Blogger.