示例#1
0
        /// <summary>Snippet for BatchWriteAsync</summary>
        public async Task BatchWriteRequestObjectAsync()
        {
            // Snippet: BatchWriteAsync(BatchWriteRequest, CallSettings)
            // Additional: BatchWriteAsync(BatchWriteRequest, CancellationToken)
            // Create client
            FirestoreClient firestoreClient = await FirestoreClient.CreateAsync();

            // Initialize request argument(s)
            BatchWriteRequest request = new BatchWriteRequest
            {
                Database = "",
                Writes   = { new Write(), },
                Labels   = { { "", "" }, },
            };
            // Make the request
            BatchWriteResponse response = await firestoreClient.BatchWriteAsync(request);

            // End snippet
        }