UtilStringGenerateRandomString(Char, Int32) Method
Generates a random string of the specified length using the specified characters.
Namespace: DevCase.Core.DataProcessing.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GenerateRandomString(
char[] charSet,
int length
)
Public Shared Function GenerateRandomString (
charSet As Char(),
length As Integer
) As String
Dim charSet As Char()
Dim length As Integer
Dim returnValue As String
returnValue = UtilString.GenerateRandomString(charSet,
length)
public:
static String^ GenerateRandomString(
array<wchar_t>^ charSet,
int length
)
static member GenerateRandomString :
charSet : char[] *
length : int -> string
No code example is currently available or this language may not be supported.
- charSet Char
-
The character set.
- length Int32
-
The target string length.
String
The resulting string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim str As String = GenerateRandomString("ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(), 10)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
ArgumentNullException
|
charSet
|