在Outlook日历中预约

时间:2013-04-16 14:04:23

标签: calendar outlook exchangewebservices managed appointment

我正在使用VB.Net和EWS托管API在Exchange 2010中创建约会。当我调用“保存”方法时,在第一台计算机上没有创建约会但是当我在第二台计算机上使用相同的代码时作品!

感谢。

我使用下面的代码在Outlook日历中保存约会:

appointment.RequiredAttendees.Add(myKalender)
    appointment.IsReminderSet = False

    Try
        System.Net.ServicePointManager.ServerCertificateValidationCallback = _
          Function(se As Object, _
          cert As System.Security.Cryptography.X509Certificates.X509Certificate, _
          chain As System.Security.Cryptography.X509Certificates.X509Chain, _
          sslerror As System.Net.Security.SslPolicyErrors) True


        appointment.Save(SendInvitationsMode.SendToNone)

        Console.Write("erfolgreich Eingetragen " & Now)
    Catch
        Console.Write("Fehler beim Erstellen des Termins " & Now & " " & Err.Description)
    End Try

0 个答案:

没有答案