public static void Run() { // ExStart:ApplyLicenseByPath Aspose.Note.License license = new Aspose.Note.License(); license.SetLicense("Aspose.Note.lic"); // ExEnd:ApplyLicenseByPath }
public static void Run() { // ExStart:ApplyLicenseUsingFileStream Aspose.Note.License license = new Aspose.Note.License(); FileStream myStream = new FileStream("Aspose.Note.lic", FileMode.Open); license.SetLicense(myStream); // ExEnd:ApplyLicenseUsingFileStream }
public static void Run() { // ExStart:ApplyLicenseByEmbeddedResource // Instantiate the License class Aspose.Note.License license = new Aspose.Note.License(); // Pass only the name of the license file embedded in the assembly license.SetLicense("Aspose.Note.lic"); // ExEnd:ApplyLicenseByEmbeddedResource }
public static void Run() { // ExStart:ApplyLicenseByPath // ExFor:License // ExFor:License.SetLicense(System.String) // ExSummary:Shows how to load a license for Aspose.Note from a file. Aspose.Note.License license = new Aspose.Note.License(); license.SetLicense("Aspose.Note.lic"); // ExEnd:ApplyLicenseByPath }
public static void Run() { // ExStart:ApplyLicenseByEmbeddedResource // ExFor:License // ExFor:License.SetLicense(System.String) // ExSummary:Shows how to load a license for Aspose.Note from embedded file resource. // Instantiate the License class Aspose.Note.License license = new Aspose.Note.License(); // Pass only the name of the license file embedded in the assembly license.SetLicense("Aspose.Note.lic"); // ExEnd:ApplyLicenseByEmbeddedResource }
public static void Run() { // ExStart:ApplyLicenseUsingFileStream // ExFor:License // ExFor:License.SetLicense(System.IO.Stream) // ExSummary:Shows how to load a license for Aspose.Note from a stream. Aspose.Note.License license = new Aspose.Note.License(); using (FileStream myStream = new FileStream("Aspose.Note.lic", FileMode.Open)) { license.SetLicense(myStream); } // ExEnd:ApplyLicenseUsingFileStream }