/// <summary>Snippet for BatchUpdateJobs</summary> public void BatchUpdateJobs() { // Snippet: BatchUpdateJobs(string,IEnumerable<Job>,CallSettings) // Create client JobServiceClient jobServiceClient = JobServiceClient.Create(); // Initialize request argument(s) string formattedParent = new TenantName("[PROJECT]", "[TENANT]").ToString(); IEnumerable <Job> jobs = new List <Job>(); // Make the request Operation <JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchUpdateJobs(formattedParent, jobs); // Poll until the returned long-running operation is complete Operation <JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result JobOperationResult result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchUpdateJobs(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result JobOperationResult retrievedResult = retrievedResponse.Result; } // End snippet }