BindToCurrentThread Method

Activity.BindToCurrentThread Method ()


Binds the user-defined work to the current thread.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public void BindToCurrentThread()

BindToCurrentThread binds the batch work that is submitted by the SynchronousCall or AsynchronousCall methods to the current single-threaded apartment (STA). BindToCurrentThread 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.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft