Method CheckSTARequirement
CheckSTARequirement()
Checks current thread on STA.
public virtual void CheckSTARequirement()
Remarks
This method performs checks only on MSW, on other os it does nothing.
Exceptions
- InvalidOperationException
Raised if GetApartmentState() is not STA.