Donald J. Trump has renewed his defense of his charitable foundation, insisting on Twitter that all of the money raised by the organization has gone to charity even as the New York attorney general continues to investigate claims to the contrary.

“I gave millions of dollars to DJT Foundation, raised and recieved millions more, ALL of which is given to charity, and media won’t report!” Mr. Trump wrote on Monday night. “100% of the money goes to wonderful charities!” he said in another post.

It was the latest flare-up concerning the Donald J. Trump Foundation, which emerged as a source of contention during the presidential race and has continued to bedevil Mr. Trump since his election. On Saturday, Mr. Trump said he would shut down the organization, a move that the New York attorney general’s office said would require state approval.

Last month, in its 2015 tax filing, the foundation itself indicated that it may have violated rules meant to protect against self-dealing, such as using charity resources to benefit one of the organization’s central people.