Kopieren eines Events
RequestParameter: CopyEventRequest
ResponseParameter: CopyEventResponse
Die Methode CopyEvent kann benutzt werden, um ein Event zu kopieren. Der CopyEventRequest
enthält die Guid der zu kopierenden Veranstaltung. Im CopyEventResponse
wird die Guid des neu erstellten Events zurückgegeben.
Beispiel Request „Event kopieren“
C#
//Create an instance of the service agent.
MailworxWebServiceAgent agent = new MailworxWebServiceAgent();
CopyEventRequest request = new CopyEventRequest();
request.EventId = new Guid("f26895b3-3648-4976-9b4f-37cbfdf3ac21");
request.SecurityContext = GetSecurityContext();
// Copy the event with the given id.
CopyEventResponse response = agent.CopyEvent(request);
Console.WriteLine("Successfully copied the event. The id of the copy is {0}", response.Guid);