public static void Run() { string dataDir = RunExamples.GetDataDir_Outlook(); MapiMessage msg = MapiMessage.FromFile(dataDir + "MsgWithAtt.msg"); msg.Save(dataDir + "AttachmentsToRemove_out.msg"); // ExStart:RemoveAttachmentsFromFile MapiMessage.RemoveAttachments(dataDir + "AttachmentsToRemove_out.msg"); // ExEnd:RemoveAttachmentsFromFile }