Aspose.Email.Examples.CSharp.Email.Outlook.GetMessageInformation.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:GetMessageInformation
            string dataDir = RunExamples.GetDataDir_Outlook();

            // Load the Outlook file
            string path = dataDir + "PersonalStorage.pst";

            try
            {
               
                // Load the Outlook PST file
                PersonalStorage personalStorage = PersonalStorage.FromFile(path);

                // Get the Display Format of the PST file
                Console.WriteLine("Display Format: " + personalStorage.Format);

                // Get the folders and messages information
                FolderInfo folderInfo = personalStorage.RootFolder;

                // Call the recursive method to display the folder contents
                DisplayFolderContents(folderInfo, personalStorage);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);               
            }
            // ExEnd:GetMessageInformation
        }
GetMessageInformation