예제 #1
0
 public static void UsingFile()
 {
     //ExStart:ApplyLicenseUsingFile
     Aspose.ThreeD.License license = new Aspose.ThreeD.License();
     license.SetLicense("Aspose.3D.lic");
     //ExEnd:ApplyLicenseUsingFile
 }
예제 #2
0
 public static void UsingFile()
 {
     // ExStart:ApplyLicenseUsingFile
     Aspose.ThreeD.License license = new Aspose.ThreeD.License();
     license.SetLicense("Aspose._3D.lic");
     // ExEnd:ApplyLicenseUsingFile
 }
예제 #3
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
 }
예제 #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
        }
예제 #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
        }
예제 #6
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
        }
예제 #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);
     }
 }
예제 #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");
 }