Method | Description | |
---|---|---|
GetNew ( int codeLength = 3 ) : AttendanceCode |
Returns a new Rock.Model.AttendanceCode comprised of random alpha numeric characters.
|
|
GetNew ( int alphaLength = 2, int numericLength = 4, bool isRandomized = true ) : AttendanceCode |
Returns a new Rock.Model.AttendanceCode with a specified number of alpha characters followed by another specified number of numeric characters. The numeric character sequence will not repeat for "today" so ensure that you're using a sufficient numericLength otherwise it will be unable to find a unique number. Also note as the issued numeric codes reaches the maximum (from the set of possible), it will take longer and longer to find an unused number.
|
Method | Description | |
---|---|---|
GenerateRandomAlphaCode ( int length ) : string |
Generates a random (security) code containing only alpha characters.
|
|
GenerateRandomCode ( int length ) : string |
Generates a random (security) code.
|
|
GenerateRandomNumericCode ( int length ) : string |
Generates a random (security) code containing only numeric characters.
|
public static GetNew ( int codeLength = 3 ) : AttendanceCode | ||
codeLength | int | A |
return | AttendanceCode |
public static GetNew ( int alphaLength = 2, int numericLength = 4, bool isRandomized = true ) : AttendanceCode | ||
alphaLength | int | A |
numericLength | int | A |
isRandomized | bool | A |
return | AttendanceCode |