ALBANY, N.Y. (AP) — The New York attorney general's office has ordered the Trump Foundation to immediately stop fundraising in the state, saying it isn't registered to do so.

James Sheehan with the attorney general's office says failure to stop immediately and answer demands for all delinquent financial reports within 15 days "shall be deemed a continuing fraud upon the people of the state of New York."

Democratic Attorney General Eric Schneiderman has been investigating Republican presidential nominee Donald Trump's foundation following media reports that foundation spending personally benefited the candidate.

The attorney general's office says the law requires a different registration than the foundation has for those that solicit more than $25,000 a year from the public.

The Trump campaign says the foundation intends to cooperate with the investigation.