Beispiel #1
0
        public static void Run()
        {
            string      dataDir = RunExamples.GetDataDir_Outlook();
            MapiMessage msg     = MapiMessage.FromFile(dataDir + "MsgWithAtt.msg");

            msg.Save(dataDir + "AttachmentsToDestroy_out.msg");

            // ExStart:DestroyAttachment
            MapiMessage.DestroyAttachments(dataDir + "AttachmentsToDestroy_out.msg");
            // ExEnd:DestroyAttachment
        }