ProcessProtocolMessages PropertyProcessProtocolMessages Property*
*Contents  *Index  *Topic Contents
*Previous Topic: OpeningChannels Property
*Next Topic: PropertyAccessTimeOut Property

ProcessProtocolMessages Property

Determines whether the OnProtocolMessage event is fired for each incoming server message.

Syntax

object.ProcessProtocolMessages=value

Parameters

objectRequired. An object expression that evaluates to an MsChatPr control.
valueRequired. A Boolean value.

Remarks

Access is read/write.

When ProcessProtocolMessages is set to TRUE, the incoming server messages are immediately treated internally and exposed through some event. The OnProtocolMessage event is fired only when the incoming server message cannot be properly interpreted by the control.

However, when ProcessProtocolMessages is set to FALSE, the control first exposes the incoming server messages through the OnProtocolMessage event.

In the OnProtocolMessage event handler, the control user can set the EnableDefault parameter to TRUE or FALSE. The parameter is set to TRUE by default.

If set to TRUE, the control treats the incoming server message normally and fires the usual event. If set to FALSE, however, the control will not treat the message internally.

Tip Only experts should set the ProcessProtocolMessages property to FALSE. If the incoming messages are not treated internally by the control, the control might end up in an unstable state. This mode must be handled with extreme caution.

Example

MsChatPr1.ProcessProtocolMessages = False

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.