Republican presidential candidate Donald Trump went on a Twitter tirade Sunday after learning that voters wishing to cast a ballot in the Virginia Republican presidential primary will have to sign an oath affirming they are a member of the party.

It begins, Republican Party of Virginia, controlled by the RNC, is working hard to disallow independent, unaffiliated and new voters. BAD! — Donald J. Trump (@realDonaldTrump) December 27, 2015

R.P.Virginia has lost statewide 7 times in a row. Will now not allow desperately needed new voters. Suicidal mistake. RNC MUST ACT NOW! — Donald J. Trump (@realDonaldTrump) December 27, 2015

The voters the Republican Party of Virginia are excluding will doom any chance of victory. The Dems LOVE IT! Be smart and win for a change! — Donald J. Trump (@realDonaldTrump) December 27, 2015

Straighten out The Republican Party of Virginia before it is too late. Stupid! RNC — Donald J. Trump (@realDonaldTrump) December 27, 2015

Trump's frustration likely stems from the fact that he performs especially well among voters who have not declared a party affiliation. In a recent survey by American Research Group, for example, he got the support of 15 percent of registered Republicans in New Hampshire, but 29 percent of those who were not registered with either political party.

Virginia voters are not required to register with a particular party, but with the approval of the State Board of Elections, the Republican Party will be able to ask primary voters to sign a party oath.

The state GOP considered a loyalty oath for the 2011 presidential primary. That pledge would have required voters to promise they intended to support the party's nominee during the general election. State Republicans ultimately scrapped the plan after it came under heavy criticism.

Get Breaking News Delivered to Your Inbox

Trump has publicly flirted with the idea of mounting a third-party bid if he feels the Republican Party is treating him unfairly. At the last GOP debate earlier this month, however, he said he "really" is ready to commit to not running as an independent.

"I've gained great respect for the Republican leadership...[and] the people on the dais," he said.