Επεξεργασία

Κοινή χρήση μέσω


ServiceConfig.Binding Property

Definition

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).

public:
 property System::EnterpriseServices::BindingOption Binding { System::EnterpriseServices::BindingOption get(); void set(System::EnterpriseServices::BindingOption value); };
public System.EnterpriseServices.BindingOption Binding { get; set; }
member this.Binding : System.EnterpriseServices.BindingOption with get, set
Public Property Binding As BindingOption

Property Value

One of the BindingOption values. The default is NoBinding.

Remarks

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.

Applies to