PARIS — The Iranian actress Taraneh Alidoosti, a co-star of “The Salesman,” an Iranian film up for the foreign-language Academy Award, said Thursday that she would boycott the Oscars ceremony to protest President Trump’s announcement that he would issue a temporary ban on visas to citizens from seven predominantly Muslim countries.

[ Read our review of “The Salesman” ]

Mr. Trump said this week that he would issue an executive order to suspend immigration for at least 30 days for citizens of Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen. It remains unclear how and whether the ban would take effect.

Ms. Alidoosti made her intentions clear on her Twitter feed, writing: “Trump’s visa ban for Iranians is racist. Whether this will include a cultural event or not, I won’t attend the #AcademyAwards 2017 in protest.”

In an email interview, she said that she would not attend the Oscars ceremony on Feb. 26 even if it turned out the proposed ban did not affect her ability to get a visa.