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

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

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:DetectDifferentFileFormats
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Email();

            // Detect file format and Gets the detected load format
            FileFormatInfo info = FileFormatUtil.DetectFileFormat(dataDir + "message.msg");
            Console.WriteLine("The message format is: " + info.FileFormatType);
            // ExEnd:DetectDifferentFileFormats
        }
    }
DetectDifferentFileFormats