public static void UsingFile() { //ExStart:ApplyLicenseUsingFile Aspose.ThreeD.License license = new Aspose.ThreeD.License(); license.SetLicense("Aspose.3D.lic"); //ExEnd:ApplyLicenseUsingFile }
public static void UsingFile() { // ExStart:ApplyLicenseUsingFile Aspose.ThreeD.License license = new Aspose.ThreeD.License(); license.SetLicense("Aspose._3D.lic"); // ExEnd:ApplyLicenseUsingFile }
public static void UsingStreamObject() { // ExStart:ApplyLicenseUsingStreamObject Aspose.ThreeD.License license = new Aspose.ThreeD.License(); FileStream myStream = new FileStream("Aspose._3D.lic", FileMode.Open); license.SetLicense(myStream); // ExEnd:ApplyLicenseUsingStreamObject }
public static void UsingStreamObject() { //ExStart:ApplyLicenseUsingStreamObject Aspose.ThreeD.License license = new Aspose.ThreeD.License(); FileStream myStream = new FileStream("Aspose.3D.lic", FileMode.Open); license.SetLicense(myStream); //ExEnd:ApplyLicenseUsingStreamObject }
public static void UsingEmbeddedResource() { //ExStart:ApplyLicenseUsingEmbeddedResource // Instantiate the License class Aspose.ThreeD.License license = new Aspose.ThreeD.License(); // Pass only the name of the license file embedded in the assembly license.SetLicense("Aspose.3D.lic"); //ExEnd:ApplyLicenseUsingEmbeddedResource }
public static void UsingEmbeddedResource() { // ExStart:ApplyLicenseUsingEmbeddedResource // Instantiate the License class Aspose.ThreeD.License license = new Aspose.ThreeD.License(); // Pass only the name of the license file embedded in the assembly license.SetLicense("Aspose._3D.lic"); // ExEnd:ApplyLicenseUsingEmbeddedResource }
///<Summary> /// SetAspose3dLicense method to Aspose.ThreeD License ///</Summary> public static void SetAspose3dLicense() { try { Aspose.ThreeD.License lic = new Aspose.ThreeD.License(); lic.SetLicense(_licenseFileName); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
///<Summary> /// SetAspose3dLicense method to Aspose.ThreeD License ///</Summary> public static void SetAspose3dLicense() { Aspose.ThreeD.License lic = new Aspose.ThreeD.License(); lic.SetLicense("Aspose.Total.lic"); }