This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The HashString function calculates a hash value from a specified string.
Returns a 32-bit integer. The return value is calculated by iterating through each character in the string specified by input, multiplying the byte value of the character by the value specified by multiplier, and then accumulating the product of this multiplication in a running total. After all of the characters in the string have been processed, the value returned is the total value specified by maxValue (that is, total % maxValue).