public async Task UpdateItemAsync(string partitionKeyValue, string Id) { this.cosmosClient = new CosmosClient(EndpointUri, PrimaryKey, new CosmosClientOptions() { ApplicationName = "CosmosDBDotnetQuickstart" }); this.database = await this.cosmosClient.CreateDatabaseIfNotExistsAsync(databaseId); this.container = await this.database.CreateContainerIfNotExistsAsync(containerId, "/Name", 400); ItemResponse <T> wakefieldFamilyResponse = await this.container.ReadItemAsync <T>(Id, new PartitionKey(partitionKeyValue)); var itemBody = wakefieldFamilyResponse.Resource; var stringProps = wakefieldFamilyResponse.GetType().GetProperties().Where(p => p.PropertyType == typeof(string)); //itemBody. = "Update the event description"; //wakefieldFamilyResponse = await this.container.ReplaceItemAsync<Event>(itemBody, itemBody.Id, new PartitionKey(itemBody.Name)); }