SoapProcessingBehavior.ProcessMessages 属性

定义

获取或设置一个值,该值指示是否应处理消息。Gets or sets a value that indicates whether messages should be processed.

public:
 property bool ProcessMessages { bool get(); void set(bool value); };
public bool ProcessMessages { get; set; }
member this.ProcessMessages : bool with get, set
Public Property ProcessMessages As Boolean

属性值

Boolean

true 如果应封送消息,则为;否则为 falsetrue if messages should be marshaled; otherwise, false. 默认值是 trueThe default value is true.

注解

默认情况下,将 RoutingBehavior SoapProcessingBehavior ProcessMessages true 为每个客户端终结点创建一个新的,并将设置为。By default, the RoutingBehavior creates and attaches a new SoapProcessingBehavior with ProcessMessages set to true for each client endpoint. 如果你不希望 SoapProcessingBehavior 在特定终结点上使用,请创建一个 SoapProcessingBehavior 将此值设置为的新 false ,然后将其附加到不希望进行处理的终结点。If you do not want to use the SoapProcessingBehavior on a specific endpoint, create a new SoapProcessingBehavior with this value set to false, and then attach it to the endpoint on which you do not want processing to occur. 如果 观察到客户端已具有一个 ,则它不会尝试附加另一个 。If the RoutingBehavior observes that a client already has a SoapProcessingBehavior, it does not attempt to attach another.

若要禁用 SoapProcessingBehavior 任何终结点上的应用程序,请在和上禁用 SOAP 处理 RoutingBehavior RoutingConfigurationTo disable the application of SoapProcessingBehavior on any endpoint, disable SOAP processing on the RoutingBehavior and the RoutingConfiguration.

适用于