2012-04-25 12 views
1

の変更所有者、私は所有者として既存の予定の項目を設定しようとしていますし、私はそれにXMLリクエストを、次のようなものを使用しています:EWS:既存の予定

<ns1:UpdateItem xmlns:ns1="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" ConflictResolution="AlwaysOverwrite" SendMeetingInvitationsOrCancellations="SendToNone"> 
    <ns1:ItemChanges> 
     <ns2:ItemChange> 
      <ns2:ItemId Id="AAMkADY1ZDIwNjM1LTU4MjAtNGQy...ogbn8LT58s6MSx+1IiAZWtaUhFAACF1Gogbn8LT58s6MSx+1IiAZ3GKIJbAAA=" ChangeKey="DwAAABYAAACF1Gogbn8LT58s6MSx+1IiAZ3HHOPj"/> 
      <ns2:Updates> 
       <ns2:SetItemField> 
        <ns2:ExtendedFieldURI DistinguishedPropertySetId="Appointment" PropertyId="33321" PropertyType="Boolean"/> 
        <ns2:CalendarItem> 
         <ns2:ExtendedProperty> 
          <ns2:ExtendedFieldURI DistinguishedPropertySetId="Appointment" PropertyId="33321" PropertyType="Boolean"/> 
          <ns2:Value>true</ns2:Value> 
         </ns2:ExtendedProperty> 
        </ns2:CalendarItem> 
       </ns2:SetItemField> 
       <ns2:SetItemField> 
        <ns2:ExtendedFieldURI DistinguishedPropertySetId="Appointment" PropertyId="33303" PropertyType="Integer"/> 
        <ns2:CalendarItem> 
         <ns2:ExtendedProperty> 
          <ns2:ExtendedFieldURI DistinguishedPropertySetId="Appointment" PropertyId="33303" PropertyType="Integer"/> 
          <ns2:Value>1</ns2:Value> 
         </ns2:ExtendedProperty> 
        </ns2:CalendarItem> 
       </ns2:SetItemField> 
      </ns2:Updates> 
     </ns2:ItemChange> 
    </ns1:ItemChanges> 
</ns1:UpdateItem> 

私が代わりにEWSのAPIを使用するためにあなたの助けが必要SOAP呼び出しの代わりにこの呼び出しを行います。

答えて

1

私はそれを得たと思う:

ExtendedPropertyDefinition definition; 
definition = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Appointment, 33321, MapiPropertyType.Boolean); 
appointment.SetExtendedProperty(definition, true); 
definition = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Appointment, 33303, MapiPropertyType.Integer); 
appointment.SetExtendedProperty(definition, 1); 
appointment.Update(ConflictResolutionMode.AlwaysOverwrite, SendInvitationsOrCancellationsMode.SendToNone); 
関連する問題