/// <summary> /// Add a member to a group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupObjectId'> /// The object ID of the group to which to add the member. /// </param> /// <param name='parameters'> /// The URL of the member object, such as /// https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddMemberAsync(this IGroupsOperations operations, string groupObjectId, GroupAddMemberParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AddMemberWithHttpMessagesAsync(groupObjectId, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }