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 (Stream, RSACryptoServiceProvider, Boolean)

Loads the specified file to create an LicenseFile

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

Syntax


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

Parameters

stream
Type: Stream
The stream to use to open the file.
key
Type: RSACryptoServiceProvider
The encryption key to be used to digitally sign the file.
checkSignature
Type: Boolean
if true checks signature using given key

Return Value

An instance of LicenseFile if found, otherwise null.