SecureRandomRandomString Method |
Generates random string containing alfanumeric characters and optionally special characters.
Namespace:
TreeksLicensingLibrary2
Assembly:
TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.8318.42066 (2.1.0.0)
Syntax public static string RandomString(
int length,
bool AddSpecialChars = false
)
Public Shared Function RandomString (
length As Integer,
Optional AddSpecialChars As Boolean = false
) As String
public:
static String^ RandomString(
int length,
bool AddSpecialChars = false
)
static member RandomString :
length : int *
?AddSpecialChars : bool
(* Defaults:
let _AddSpecialChars = defaultArg AddSpecialChars false
*)
-> string
Parameters
- length
- Type: SystemInt32
Requested length of random string - AddSpecialChars (Optional)
- Type: SystemBoolean
Determines, if random string should contain special characters also.
Return Value
Type:
StringRandomly generated string
Remarks See Also