【问题标题】:Exchange Web Services (EWS) delete a RequiredAttendees from a meeting?Exchange Web 服务 (EWS) 从会议中删除 RequiredAttendees 吗?
【发布时间】:2011-07-21 07:10:59
【问题描述】:

如何使用 XML 从会议中删除用户?

我有这段代码可以删除所有必需的参加者

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Body>
    <UpdateItem MessageDisposition="SendAndSaveCopy" ConflictResolution="AutoResolve" SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy" 
                xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <ItemChanges>
        <t:ItemChange>
          <t:ItemId Id="AAALAGVkaUB...=" ChangeKey="DwAAABYAAA...."/>
          <t:Updates>
            <t:DeleteItemField>
              <t:FieldURI FieldURI="calendar:RequiredAttendees"/>
            </t:DeleteItemField>
          </t:Updates>
        </t:ItemChange>
      </ItemChanges>
    </UpdateItem>
  </soap:Body>
</soap:Envelope>

这个代码添加一个RequiredAttendee

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Body>
    <UpdateItem MessageDisposition="SendAndSaveCopy" ConflictResolution="AutoResolve" SendMeetingInvitationsOrCancellations="SendToAllAndSaveCopy" 
                xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <ItemChanges>
        <t:ItemChange>
          <t:ItemId Id="AAALAGVkaUBlbGl...." ChangeKey="DwAAABYAAAC......"/>
          <t:Updates>
                    <t:AppendToItemField>
          <t:FieldURI FieldURI="calendar:RequiredAttendees" />
          <t:CalendarItem>
            <t:RequiredAttendees>
              <t:Attendee>
                <t:Mailbox>
                  <t:EmailAddress>user@localhost.comm</t:EmailAddress>
                </t:Mailbox>
              </t:Attendee>
            </t:RequiredAttendees>
          </t:CalendarItem>
        </t:AppendToItemField>
          </t:Updates>
        </t:ItemChange>
      </ItemChanges>
    </UpdateItem>
  </soap:Body>
</soap:Envelope>

两者都适合我,但我找不到删除会议中使用的一个而不是全部的方法!

有什么帮助吗?

【问题讨论】:

    标签: xml exchange-server exchangewebservices


    【解决方案1】:

    answer here 看起来很有希望。您似乎无法删除与会者,而是只用您想要的人更新与会者列表。

    您也可以使用API

    【讨论】:

    • 我没有使用 C#,我需要它的 XML :-(
    • 谢谢,这看起来很有趣它确实有道理:-) 所以只有这样吗?
    • 不幸的是,我相信是这样。没有一个简单的删除实用程序似乎很愚蠢。 =/
    • 在我构建 XML 的代码中仍然可以使用这个,它让事情变得更容易:-)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-20
    • 1970-01-01
    • 2013-09-28
    • 2016-05-20
    • 1970-01-01
    相关资源
    最近更新 更多