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