none
[E2010] [EWSMA] [C#]: Getting the owener of a public folder

    Soru

  • Hi everybody!

    In my Application I'm reading out a list of calendars out of the public folders on a Exchange 2010 (hosted). This part is no problem. But I need to know the owner of each calendar so I get a List of owners. I'm trying the hole day now and I couldn't find anythig about it in the net. I'm shure there must be a property I can read, when I have the folders.

    I created an Exchange Service called "service" and then I try to acess the public folder, respectively the owner of the folder. There is a property called "mailbox" and I bet this is it, but it is always empty.

    // Create a view
                FolderView view = new FolderView(int.MaxValue);
    
    // Identify the properties to return in the results set
                view.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties);
                view.PropertySet.Add(FolderSchema.DisplayName);
                view.PropertySet.Add(FolderSchema.ChildFolderCount);
                view.PropertySet.Add(FolderSchema.FolderClass);
                view.PropertySet.Add(FolderSchema.ManagedFolderInformation);
                
    view.PropertySet.Add(FolderSchema.Id);
    
    folderResults = service.FindFolders(WellKnownFolderName.PublicFoldersRoot, view);

    Thanks for help!

    • Taşıyan Neddy Ren 08 Mart 2012 Perşembe 05:55 (From:Visual C# General)
    07 Mart 2012 Çarşamba 08:47

Yanıtlar

Tüm Yanıtlar