예제 #1
0
        private void EWSTestGetFolder(string DistinguishedFolderName)
        {
            Dictionary <string, string> fieldValues = new Dictionary <string, string>();

            fieldValues.Add("FolderId", $"<t:DistinguishedFolderId Id=\"{DistinguishedFolderName}\" />");
            TryXmlRequest(FormReplaceTemplateFields.RetrieveEWSRequest("GetFolder", fieldValues));
        }
예제 #2
0
        private void EWSTestFindItem(string DistinguishedFolderName)
        {
            Dictionary <string, string> fieldValues = new Dictionary <string, string>();

            fieldValues.Add("BaseShape", "Default");
            fieldValues.Add("MaxEntriesReturned", "50");
            fieldValues.Add("Offset", "0");
            fieldValues.Add("Basepoint", "Beginning");
            fieldValues.Add("Folder", $"<t:DistinguishedFolderId Id=\"{DistinguishedFolderName}\" />");
            TryXmlRequest(FormReplaceTemplateFields.RetrieveEWSRequest("FindItem", fieldValues));
        }