Click or drag to resize

SKMLoadKeyInformationFromFile Method

This method loads key information stored in a file into a key information variable.

Namespace:  SKGL
Assembly:  SKM (in SKM.dll) Version: (
public static KeyInformation LoadKeyInformationFromFile(
	string file,
	bool json = false,
	bool activationFile = false


Type: SystemString
The entire path including file name, i.e. c:\folder\file.txt
json (Optional)
Type: SystemBoolean
If the file is stored in JSON (eg. an activation file with .skm extension), set this parameter to TRUE.
activationFile (Optional)
Type: SystemBoolean
If you obtained this file from an Activation Form (.skm extension), this should be set to true.

Return Value

Type: KeyInformation
If successful, this method returns a KeyInformation object. Null otherwise.
If you want to read a file that uses the JSON format created by SaveKeyInformationToFile(KeyInformation, String, Boolean), activationFile has to be set to FALSE while json is set to TRUE.
See Also