Click or drag to resize
PLUS4MethodsGenerateUserCode2Value Method (String)
Generates a Protection PLUS 4 Trigger Code "User Code 2" (or "Computer ID") value from a string which contains data that uniquely identifies the system.

Namespace: com.softwarekey.Client.Compatibility.ProtectionPLUS4
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax
public static int GenerateUserCode2Value(
	string identifiers
)

Parameters

identifiers
Type: SystemString
The string which uniquely identifies the system being activated.

Return Value

Type: Int32
Returns a 32-bit integer value representing a Protection PLUS 4 compatible "Computer ID" or "User Code 2" value.
Remarks
Caution note Caution

The Protection PLUS 4 compatible "User Code 2" or "Computer ID" generated by this method are NOT designed to match Computer ID values generated by Protection PLUS 4, and are also NOT designed to work with the Protection PLUS 4 Computer ID thresholds. This method only provides a simple way to generate a Protection PLUS 4 compatible Computer ID to use with activation, and is NOT designed for any purpose other than providing a reasonable, compatible means of ensuring a Protection PLUS 4 trigger code is only processed for the appropriate system.

Caution note Caution

This method does not validate the SystemIdentifier string is a valid object, therefore before calling this method always validate the SystemIdentifier string is not null or empty. Otherwise, your application may receive a null reference exception.

See Also