Binds the user-defined work to the current thread.
Assembly: System.EnterpriseServices (in System.EnterpriseServices.dll)
binds the batch work that is submitted by the SynchronousCall or AsynchronousCall methods to the current single-threaded apartment (STA). has no effect if the current thread is being run in the multithreaded apartment (MTA). The current thread model is determined by the configuration of the ThreadPool property of the ServiceConfig object.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.