Aspose.Slides.Examples.CSharp.Presentations.Opening.VerifyingPresentationWithoutloading.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationOpening();

            LoadFormat format = PresentationFactory.Instance.GetPresentationInfo(dataDir + "HelloWorld.pptx").LoadFormat;
            // It will return "LoadFormat.Unknown" if the file is other than presentation formats           
        }
    }
VerifyingPresentationWithoutloading