CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

LicenseFile..::..LoadFile Method (FileInfo, RSACryptoServiceProvider, Boolean)

Loads the specified file to create a LicenseFile.

Namespace:  CAS.Lib.CodeProtect.LicenseDsc
Assembly:  CAS.CodeProtect (in CAS.CodeProtect.dll)

Syntax


public static LicenseFile LoadFile(
	FileInfo license,
	RSACryptoServiceProvider key,
	bool checkSignature
)
Public Shared Function LoadFile ( _
	license As FileInfo, _
	key As RSACryptoServiceProvider, _
	checkSignature As Boolean _
) As LicenseFile
public:
static LicenseFile^ LoadFile(
	FileInfo^ license, 
	RSACryptoServiceProvider^ key, 
	bool^ checkSignature
)

Parameters

license
Type: FileInfo
An instance of the FileInfo containing all information about the license file.
key
Type: RSACryptoServiceProvider
The products public keys to verify the license signature..
checkSignature
Type: Boolean
if set to true the signature is checked.

Return Value