Visual Basic (Declaration) | |
---|---|
<ObsoleteAttribute(Message="Security: Deprecated. Use GeneratePasswordChars() instead", IsError=True)> Public Shared Function GeneratePassword( _ ByVal minLength As Integer, _ ByVal maxLength As Integer, _ ByVal alphaLower As Boolean, _ ByVal alphaUpper As Boolean, _ ByVal numeric As Boolean, _ ByVal ParamArray domains() As String _ ) As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim minLength As Integer Dim maxLength As Integer Dim alphaLower As Boolean Dim alphaUpper As Boolean Dim numeric As Boolean Dim domains() As String Dim value As String value = CryptoFactory.GeneratePassword(minLength, maxLength, alphaLower, alphaUpper, numeric, domains) |
C# | |
---|---|
[Obsolete(Message="Security: Deprecated. Use GeneratePasswordChars() instead", IsError=true)] public static string GeneratePassword( int minLength, int maxLength, bool alphaLower, bool alphaUpper, bool numeric, params string[] domains ) |
C++/CLI | |
---|---|
[Obsolete(Message="Security: Deprecated. Use GeneratePasswordChars() instead", IsError=true)] public: static String^ GeneratePassword( int minLength, int maxLength, bool alphaLower, bool alphaUpper, bool numeric, ... array<String^>^ domains ) |
Parameters
- minLength
- maxLength
- alphaLower
- alphaUpper
- numeric
- domains
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2