Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ItemResponse<ToDoActivity> itemResponse = await this.container.DeleteItemAsync<ToDoActivity>(
"<id>",
new PartitionKey("<partitionKeyValue>"),
requestOptions : new ItemRequestOptions() { EnableContentResponseOnWrite = false });
ToDoActivity responseContent = itemResponse.Resource; // <-- This will be null now
double consumedRus = itemResponse.Headers.RequestCharge;
string etag = itemResponse.Headers.ETag;
string session = itemResponse.Headers.Session;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment