PasswordGeneratorGenerate Method (Int32, String) |
Namespace: MlkPwgenAssembly: MlkPwgen (in MlkPwgen.dll) Version: 0.1.0.0
Syntax public static string Generate(
int length = 10,
string allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
)
Public Shared Function Generate (
Optional length As Integer = 10,
Optional allowed As String = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
) As String
public:
static String^ Generate(
int length = 10,
String^ allowed = L"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
)
static member Generate :
?length : int *
?allowed : string
(* Defaults:
let _length = defaultArg length 10
let _allowed = defaultArg allowed "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
*)
-> string
Parameters
- length (Optional)
- Type: SystemInt32
- allowed (Optional)
- Type: SystemString
The set of characters the password will be randomly made of
Return Value
Type:
StringSee Also