MessageHeaderInfo.MustUnderstand 属性

定义

获取或设置一个值,该值指示对消息头的处理是强制的还是可选的。Gets or sets a value that indicates whether processing the message header is mandatory or optional.

public:
 abstract property bool MustUnderstand { bool get(); };
public abstract bool MustUnderstand { get; }
member this.MustUnderstand : bool
Public MustOverride ReadOnly Property MustUnderstand As Boolean

属性值

Boolean

如果强制要求进行消息标头处理,则为 true;否则为 falsetrue if processing the message header is mandatory; otherwise, false.

注解

如果此属性为 true 且消息接收方无法解释消息头,则不会处理消息并且会引发异常。If this property is true and the message receiver cannot interpret the message header, the message is not processed and an exception is thrown. 如果此属性为 false,则接收方可忽略消息头并继续进行处理。If this property is false, the receiver can ignore the message header and continue processing.

适用于