예제 #1
0
        /// <summary>Snippet for DeleteDocument</summary>
        public void DeleteDocument()
        {
            // Snippet: DeleteDocument(string, CallSettings)
            // Create client
            FirestoreClient firestoreClient = FirestoreClient.Create();
            // Initialize request argument(s)
            string name = "";

            // Make the request
            firestoreClient.DeleteDocument(name);
            // End snippet
        }
        /// <summary>Snippet for DeleteDocument</summary>
        public void DeleteDocument()
        {
            // Snippet: DeleteDocument(string,CallSettings)
            // Create client
            FirestoreClient firestoreClient = FirestoreClient.Create();
            // Initialize request argument(s)
            string formattedName = new AnyPathName("[PROJECT]", "[DATABASE]", "[DOCUMENT]", "[ANY_PATH]").ToString();

            // Make the request
            firestoreClient.DeleteDocument(formattedName);
            // End snippet
        }
        /// <summary>Snippet for DeleteDocument</summary>
        public void DeleteDocument_RequestObject()
        {
            // Snippet: DeleteDocument(DeleteDocumentRequest,CallSettings)
            // Create client
            FirestoreClient firestoreClient = FirestoreClient.Create();
            // Initialize request argument(s)
            DeleteDocumentRequest request = new DeleteDocumentRequest
            {
                Name = new AnyPathName("[PROJECT]", "[DATABASE]", "[DOCUMENT]", "[ANY_PATH]").ToString(),
            };

            // Make the request
            firestoreClient.DeleteDocument(request);
            // End snippet
        }
예제 #4
0
        /// <summary>Snippet for DeleteDocument</summary>
        public void DeleteDocumentRequestObject()
        {
            // Snippet: DeleteDocument(DeleteDocumentRequest, CallSettings)
            // Create client
            FirestoreClient firestoreClient = FirestoreClient.Create();
            // Initialize request argument(s)
            DeleteDocumentRequest request = new DeleteDocumentRequest
            {
                Name            = "",
                CurrentDocument = new Precondition(),
            };

            // Make the request
            firestoreClient.DeleteDocument(request);
            // End snippet
        }