Click or drag to resize
PLUS4MethodsGenerateUserCode2Value Method (ListSystemIdentifier)
Generates a Protection PLUS 4 Trigger Code "User Code 2" (or "Computer ID") value from a list of SystemIdentifier objects.

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

Parameters

identifiers
Type: System.Collections.GenericListSystemIdentifier
The SystemIdentifier objects which identify 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 list is a valid object, therefore before calling this method always validate the SystemIdentifier list is not null. Otherwise, your application may receive a null reference exception.

See Also