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)

Loads the specified file to create an LicenseFile and checks the digital signature

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

Syntax


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

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.

Return Value

new license object or null if stream == null