SoapHeaderAttribute.Required 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced
這個成員已經過時,而且不具功能。
public:
property bool Required { bool get(); void set(bool value); };
[System.Obsolete("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", false)]
public bool Required { get; set; }
[<System.Obsolete("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", false)>]
member this.Required : bool with get, set
Public Property Required As Boolean
屬性值
Boolean 值。
- 屬性
備註
若要確認 SOAP 標頭已傳送至 XML Web 服務,請確認 屬性中指定的 MemberName 成員為 null
。 null
如果是 ,則不會傳送 SOAP 標頭。
在 .NET Framework SDK 1.0 版中 Required ,屬性會指出收件者 XML Web 服務或 XML Web 服務用戶端是否必須瞭解及處理 SOAP 標頭。 如果收件者未處理 SOAP 標頭,則會擲回例外狀況。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應