English 中文(简体)
• 如何安排从网上交换服务的网络应用程序中安排会议的组织者
原标题:How to set the Organiser of a meeting from a .net application accessing Exchange Web Service

在内联网上部署的蚊帐应用中,我正试图获得这一应用,以便用户能够在网页上列名的人们的《展望》日历上作出任命。

To create an ExchangeService I am doing this ...

ExchangeService myService = new ExchangeService(ExchangeVersion.Exchange2010);
myService.Credentials = new WebCredentials("myName", "myPassword");
myService.AutodiscoverUrl("[email protected]");

... and then create an appointment using ...

Appointment a = new Appointment(myService);

等等。 当我主持工作时,我就把我作为会议的组织者。 但是,当我部署这个网站时——假设我需要把用户名称和密码放在使用者身上,以便他们作为任命成为会议的组织者。 组织者只读。 但是,我不知道并且能够接触用户名和密码。 因此,在网上应用中,不同用户如何利用网络服务,以便他们成为会议的组织者?

While testing I am putting in the UserName and Password I use to log in to windows

问题回答

You must impersonate the user in order to have that user as the organizer. 1. Initialize the Exchange service with a service account which has the Impersonation rights. 2. Impersonate the users using their email address. 3. Create the appointment.

这样,服务账户就冒着用户的名声,并像用户那样创建任命。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签