SetLicense
SetLicense(string)
Sets the license from a file path.
public void SetLicense(string filePath)
Parameter | Type | Description |
---|---|---|
filePath | String | The path to the license file. |
Examples
///
// initialize License class
License license = new License();
// set path to .lic file
license.SetLicense(@"C:\\GroupDocs.Markdown.lic");
See Also
- class License
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown
SetLicense(Stream)
Sets the license from a stream.
public void SetLicense(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream that contains the license. |
Examples
using (FileStream stream = new FileStream("C:\\GroupDocs.Markdown.lic", FileMode.Open))
{
License.SetLicense(stream);
}
See Also
- class License
- namespace GroupDocs.Markdown
- assembly GroupDocs.Markdown