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: 4.0.2.6 (4.0.2.6)
Syntax
public static KeyInformation LoadKeyInformationFromFile(
	string file,
	bool json = false,
	bool activationFile = false
)

Parameters

file
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.
Remarks
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