public void CreateGroup() { // Snippet: CreateGroup(string,Group,CallSettings) // Create client GroupServiceClient groupServiceClient = GroupServiceClient.Create(); // Initialize request argument(s) string formattedName = GroupServiceClient.FormatProjectName("[PROJECT]"); Group group = new Group(); // Make the request Group response = groupServiceClient.CreateGroup(formattedName, group); // End snippet }
public async Task CreateGroupAsync() { // Snippet: CreateGroupAsync(string,Group,CallSettings) // Additional: CreateGroupAsync(string,Group,CancellationToken) // Create client GroupServiceClient groupServiceClient = GroupServiceClient.Create(); // Initialize request argument(s) string formattedName = GroupServiceClient.FormatProjectName("[PROJECT]"); Group group = new Group(); // Make the request Group response = await groupServiceClient.CreateGroupAsync(formattedName, group); // End snippet }