Beispiel #1
0
        public static Uri UpdateOwaLinkToSearchId(Uri baseLink, string searchId)
        {
            Dictionary <string, string> queryParameters = new Dictionary <string, string>
            {
                {
                    "cmd",
                    "contents"
                },
                {
                    "module",
                    "discovery"
                },
                {
                    "discoveryid",
                    searchId
                },
                {
                    "exsvurl",
                    "1"
                }
            };
            Uri baseUri = LinkUtils.AppendRelativePath(baseLink, "default.aspx", false);

            return(LinkUtils.AppendQueryString(baseUri, queryParameters));
        }
Beispiel #2
0
        public static Uri GetOwaMailboxItemLink(Action errorHandler, MailboxInfo mailboxInfo, bool supportsIntegratedAuth)
        {
            Uri uri = LinkUtils.GetOwaBaseLink(errorHandler, mailboxInfo, supportsIntegratedAuth);

            if (uri != null)
            {
                uri = LinkUtils.AppendQueryString(uri, LinkUtils.itemLinkParameters);
            }
            return(uri);
        }
Beispiel #3
0
 public static Uri UpdateOwaLinkToItem(Uri baseLink, string itemId)
 {
     return(LinkUtils.AppendQueryString(baseLink, new Dictionary <string, string>
     {
         {
             "ItemID",
             itemId
         }
     }));
 }