LicenseSetLicense Method (Stream)
Licenses the component.

Namespace: GroupDocs.Viewer
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.9
Syntax
public void SetLicense(
	Stream licenseStream
)

Parameters

licenseStream
Type: System.IOStream
The 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.Viewer.License license = new GroupDocs.Viewer.License();
    license.SetLicense(licenseStream);
}
See Also