/// <summary> /// Sends request to leave current group /// </summary> /// <returns>Request result</returns> /// <exception cref="LinkedInAlreadyMemberException">Thrown if user is not a member of the group</exception> public LinkedInResponse <bool> Leave() { if (MembershipState != LinkedInGroupRelationship.NonMember) { return(RequestRunner.RequestLeaveGroup(Id)); } throw new LinkedInIsNotMemberException("The user is not a member of group " + Name); }