/// <summary> /// Deletes a specified wireless profile. /// </summary> /// <param name="interfaceId">Interface ID</param> /// <param name="profileName">Profile name</param> /// <returns>True if successfully deleted. False if could not delete.</returns> public static bool DeleteProfile(Guid interfaceId, string profileName) { if (interfaceId == Guid.Empty) { throw new ArgumentException(nameof(interfaceId)); } if (string.IsNullOrWhiteSpace(profileName)) { throw new ArgumentNullException(nameof(profileName)); } using (var client = new Base.WlanClient()) { return(Base.DeleteProfile(client.Handle, interfaceId, profileName)); } }