SoapHeaderAttribute.Required 屬性

定義

警告

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 成員為 nullnull如果是 ,則不會傳送 SOAP 標頭。

在 .NET Framework SDK 1.0 版中 Required ,屬性會指出收件者 XML Web 服務或 XML Web 服務用戶端是否必須瞭解及處理 SOAP 標頭。 如果收件者未處理 SOAP 標頭,則會擲回例外狀況。

適用於