public final class DeleteItemRequest extends MultiResponseServiceRequest<TResponse>
Constructor and Description |
---|
DeleteItemRequest(ExchangeService service,
ServiceErrorHandling errorHandlingMode)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
protected ServiceResponse |
createServiceResponse(ExchangeService service,
int responseIndex)
Creates the service response.
|
DeleteMode |
getDeleteMode()
Gets the delete mode.
|
protected int |
getExpectedResponseMessageCount()
Gets the expected response message count.
|
ItemIdWrapperList |
getItemIds()
Gets the item ids.
|
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the request version.
|
protected String |
getResponseMessageXmlElementName()
Gets the name of the response message XML element.
|
protected String |
getResponseXmlElementName()
Gets the name of the response XML element.
|
String |
getXmlElementName()
Gets the name of the XML element.
|
void |
setAffectedTaskOccurrences(AffectedTaskOccurrence affectedTaskOccurrences)
Sets the affected task occurrences.
|
void |
setDeleteMode(DeleteMode deleteMode)
Gets the delete mode.e
|
void |
setSendCancellationsMode(SendCancellationsMode sendCancellationsMode)
Sets the send cancellations mode.
|
protected void |
validate()
Validate request.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes XML attribute.
|
protected void |
writeElementsToXml(EwsServiceXmlWriter writer)
Writes XML elements.
|
endExecute, execute, getErrorHandlingMode, parseResponse
beginExecute, endInternalExecute, internalExecute
buildEwsHttpPoolingWebRequest, buildEwsHttpWebRequest, getEwsHttpWebResponse, getResponseStream, getService, processWebException, readPreamble, readResponse, readResponse, readSoapFault, throwIfNotSupportedByRequestedServerVersion, traceResponse, validateAndEmitRequest, writeBodyToXml, writeToXml
public DeleteItemRequest(ExchangeService service, ServiceErrorHandling errorHandlingMode) throws Exception
service
- the serviceerrorHandlingMode
- the error handling modeException
protected void validate() throws Exception
validate
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
Exception
- the exceptionprotected int getExpectedResponseMessageCount()
getExpectedResponseMessageCount
in class MultiResponseServiceRequest<ServiceResponse>
protected ServiceResponse createServiceResponse(ExchangeService service, int responseIndex)
createServiceResponse
in class MultiResponseServiceRequest<ServiceResponse>
service
- the serviceresponseIndex
- the response indexpublic String getXmlElementName()
getXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
protected String getResponseXmlElementName()
getResponseXmlElementName
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
protected String getResponseMessageXmlElementName()
getResponseMessageXmlElementName
in class MultiResponseServiceRequest<ServiceResponse>
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionprotected void writeElementsToXml(EwsServiceXmlWriter writer) throws Exception
writeElementsToXml
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
writer
- the writerException
- the exceptionprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion
in class ServiceRequestBase<ServiceResponseCollection<ServiceResponse>>
public ItemIdWrapperList getItemIds()
public void setAffectedTaskOccurrences(AffectedTaskOccurrence affectedTaskOccurrences)
affectedTaskOccurrences
- the new affected task occurrencespublic void setSendCancellationsMode(SendCancellationsMode sendCancellationsMode)
sendCancellationsMode
- the new send cancellations modepublic DeleteMode getDeleteMode()
public void setDeleteMode(DeleteMode deleteMode)
deleteMode
- the new delete modeCopyright © 2012–2015 Microsoft. All rights reserved.