示例#1
0
        public async Task DeletePhotoAsync()
        {
            // Snippet: DeletePhotoAsync(string,CallSettings)
            // Additional: DeletePhotoAsync(string,CancellationToken)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            string photoId = "";
            // Make the request
            await streetViewPublishServiceClient.DeletePhotoAsync(photoId);

            // End snippet
        }
示例#2
0
        public async Task DeletePhotoAsync_RequestObject()
        {
            // Snippet: DeletePhotoAsync(DeletePhotoRequest,CallSettings)
            // Create client
            StreetViewPublishServiceClient streetViewPublishServiceClient = await StreetViewPublishServiceClient.CreateAsync();

            // Initialize request argument(s)
            DeletePhotoRequest request = new DeletePhotoRequest
            {
                PhotoId = "",
            };
            // Make the request
            await streetViewPublishServiceClient.DeletePhotoAsync(request);

            // End snippet
        }