コード例 #1
0
ファイル: MailboxUrls.cs プロジェクト: YHZX2013/exchange_diff
        public static MailboxUrls GetOwaMailboxUrls(IExchangePrincipal exchangePrincipal)
        {
            string smtpAddress = exchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString();
            string owaUrl      = MailboxUrls.GetOwaUrl(exchangePrincipal, true);

            return(new MailboxUrls(smtpAddress, owaUrl, null));
        }
コード例 #2
0
ファイル: MailboxUrls.cs プロジェクト: YHZX2013/exchange_diff
        public MailboxUrls(IExchangePrincipal exchangePrincipal, bool failOnError = false)
        {
            string smtpAddress = exchangePrincipal.MailboxInfo.PrimarySmtpAddress.ToString();
            string owaUrl      = MailboxUrls.GetOwaUrl(exchangePrincipal, failOnError);
            string ewsUrl      = MailboxUrls.GetEwsUrl(exchangePrincipal, failOnError);

            this.InitializeUrls(smtpAddress, owaUrl, ewsUrl);
        }