UtilStringGenerateRandomString(Char, Int32, Int32) Method
Generates a random string within the specified string-length range 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 minLength,
int maxLength
)
Public Shared Function GenerateRandomString (
charSet As Char(),
minLength As Integer,
maxLength As Integer
) As String
Dim charSet As Char()
Dim minLength As Integer
Dim maxLength As Integer
Dim returnValue As String
returnValue = UtilString.GenerateRandomString(charSet,
minLength, maxLength)
public:
static String^ GenerateRandomString(
array<wchar_t>^ charSet,
int minLength,
int maxLength
)
static member GenerateRandomString :
charSet : char[] *
minLength : int *
maxLength : int -> string
No code example is currently available or this language may not be supported.
- charSet Char
-
The character set.
- minLength Int32
-
The minimum string length.
- maxLength Int32
-
The maximum 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(), minLength:=3, maxLength:=5)
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
|
ArgumentOutOfRangeException
|
minLength;Value bigger than 0 is required.
|