Example #1
0
 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
 }
Example #4
0
        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
        }
Example #5
0
        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
        }
Example #7
0
 ///<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);
     }
 }
Example #8
0
 ///<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");
 }