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
}
}