PhoneSystemGenerateRandomString Method

generator of random strings. Length of the string is defined by the call to Next(Int32, Int32) with minLen and minLen

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public static string GenerateRandomString(
	ushort minLen,
	ushort maxLen,
	PhoneSystemPasswordGenerationOptions Options = PhoneSystemPasswordGenerationOptions.DigitsLettersLowerCase
)

Parameters

minLen  UInt16
first parameter for Next(Int32, Int32)
maxLen  UInt16
second parameter for Next(Int32, Int32)
Options  PhoneSystemPasswordGenerationOptions  (Optional)
character set

Return Value

String
random string which contains only specified type of characters and have at least minLen characters

Remarks

Method does not generate exception if maxLen<minLen by assuming that maxLen==minLen

See Also