none
How to Set Permission user's do not delete Calendar on OWA & EWS RRS feed

  • Question

  • I am trying to create Calendar to user's with EWS. 

    this my code 

              service.ImpersonatedUserId = New ImpersonatedUserId(ConnectingIdType.SmtpAddress, "pichate@liveedu.com")
    
                Dim addCalendar As Folder = New Folder(service)
    
                addCalendar.DisplayName = "Test 1"
                addCalendar.FolderClass = "IPF.Appointment"
    
                Dim perm = New FolderPermission(New UserId("pichate@liveedu.com"),
                                                FolderPermissionLevel.NoneditingAuthor)
    
                addCalendar.Permissions.Add(perm)
                addCalendar.Save(WellKnownFolderName.Calendar)
    Best regards

    Friday, May 18, 2012 4:40 AM