Löschen eines Events
RequestParameter: DeleteEventRequest
ResponseParameter: DeleteEventResponse
Diese Methode kann zur Löschung eines bestehenden Events verwendet werden. Die Guid der zu löschenden Veranstaltung muss im DeleteEventRequest
gesetzt werden.
Beispiel Request „Event löschen“
C#
//Create an instance of the service agent.
MailworxWebServiceAgent agent = new MailworxWebServiceAgent();
DeleteEventRequest request = new DeleteEventRequest();
request.EventId = new Guid("595b65b3-2113-455d-b137-3bf2cf73fba4");
request.SecurityContext = GetSecurityContext();
// Delete the event with the given id.
DeleteEventResponse response = agent.DeleteEvent(request);
Console.WriteLine("Successfully deleted the event with the id {0}", request.EventToDelete);