LicenseSetLicense Method (Stream)
Licenses the component.

Namespace: GroupDocs.Parser
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 19.11
Syntax
public void SetLicense(
	Stream stream
)

Parameters

stream
Type: System.IOStream
License stream.
Examples

The following example demonstrates how to set a license passing Stream of the license file.

C#
using (FileStream licenseStream = new FileStream("LicenseFile.lic", FileMode.Open))
{
    GroupDocs.Parser.License license = new GroupDocs.Parser.License();
    license.SetLicense(licenseStream);
}
See Also