ServiceConfig.Binding Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the binding option, which indicates whether all work submitted by the activity is to be bound to only one single-threaded apartment (STA).

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

public BindingOption Binding { get; set; }

Property Value

Type: System.EnterpriseServices.BindingOption

One of the BindingOption values. The default is NoBinding.

Binding has no impact on the multithreaded apartment (MTA). This property is used to set the thread pool binding only when creating a Activity. An error is returned if an attempt is made to set the thread pool binding when calling Enter.

.NET Framework
Available since 1.1
Return to top
Show: