MessageHeaderInfo.MustUnderstand 屬性

定義

取得或設定值,這個值指出訊息標頭的處理為強制性或選擇性。

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,否則為 false

備註

如果此屬性為 true,而且訊息接收者無法解譯訊息標頭,則不會處理該訊息且會擲回例外狀況 (Exception)。 如果此屬性為 false,接收者可以忽略訊息標頭並繼續處理。

適用於