Aspose.Email.Examples.CSharp.Email.Outlook.ReadVoteResultsInformation.Run C# (CSharp) 메소드

Run() 공개 정적인 메소드

public static Run ( ) : void
리턴 void
        public static void Run()
        {
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            MapiMessage msg = MapiMessage.FromFile(dataDir + @"AddVotingButtonToExistingMessage.msg");
            foreach (MapiRecipient recipient in msg.Recipients)
            {
                Console.WriteLine(string.Format("Recipient: {0}", recipient.DisplayName));

                // Get the PR_RECIPIENT_AUTORESPONSE_PROP_RESPONSE property
                Console.WriteLine(string.Format("Response: {0}", recipient.Properties[MapiPropertyTag.PR_RECIPIENT_AUTORESPONSE_PROP_RESPONSE].GetString()));

                // Get the PR_RECIPIENT_TRACKSTATUS_TIME property
                Console.WriteLine(string.Format("Response time: {0}", recipient.Properties[MapiPropertyTag.PR_RECIPIENT_TRACKSTATUS_TIME].GetDateTime()));

                Console.WriteLine();
            }
        }
    }
ReadVoteResultsInformation