ServiceConfig.Binding Propriedade

Definição

Obtém ou define a opção de associação, que indica se todo o trabalho enviado pela atividade deve ser associado a apenas um STA (Single-Threaded Apartment).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

Valor da propriedade

BindingOption

Um dos valores de BindingOption.One of the BindingOption values. O padrão é NoBinding.The default is NoBinding.

Comentários

Binding Não tem impacto sobre o MTA (multithreaded apartment).Binding has no impact on the multithreaded apartment (MTA). Essa propriedade é usada para definir a associação do pool de threads somente ao criar um Activity .This property is used to set the thread pool binding only when creating a Activity. Um erro será retornado se for feita uma tentativa de definir a associação do pool de threads ao chamar Enter .An error is returned if an attempt is made to set the thread pool binding when calling Enter.

Aplica-se a