Aspose.Diagram.Examples.CSharp.ApplyLicense.ApplyLicenseUsingFileStream.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:ApplyLicenseUsingFileStream
            // Set path of the license file, i.e. c:\temp\
            string dataDir = @"c:\temp\";
            // Load an existing Visio file in the stream
            FileStream LicStream = new FileStream(dataDir + "Aspose.Diagram.lic", FileMode.Open);

            License license = new License();
            license.SetLicense(LicStream);
            // ExEnd:ApplyLicenseUsingFileStream
        }
ApplyLicenseUsingFileStream