LicenseSetLicense Method (Stream) |
Licenses the component.
Namespace: GroupDocs.ViewerAssembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 22.5
Syntaxpublic void SetLicense(
Stream licenseStream
)
Public Sub SetLicense (
licenseStream As Stream
)
public:
void SetLicense(
Stream^ licenseStream
)
member SetLicense :
licenseStream : Stream -> unit
Parameters
- licenseStream
- Type: System.IOStream
The license stream.
Exceptions
Examples
The following example demonstrates how to set a license
passing Stream of the license file.
using (FileStream licenseStream = File.OpenRead("GroupDocs.Viewer.lic"))
{
License license = new License();
license.SetLicense(licenseStream);
}
See Also