SoapHeaderAttribute.Required Proprietà

Definizione

Attenzione

This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced

Questo membro è obsoleto e non ha alcuna funzionalità.

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

Valore della proprietà

Valore Boolean.

Attributi

Commenti

Per verificare che un'intestazione SOAP venga inviata a un servizio Web XML, verificare che il membro specificato nella MemberName proprietà sia null. In caso affermativo null, l'intestazione SOAP non è stata inviata.

Nella versione 1.0 di .NET Framework SDK, la Required proprietà indica se un'intestazione SOAP deve essere compresa ed elaborata dal servizio Web XML del destinatario o dal client del servizio Web XML. Se un destinatario non ha elaborato l'intestazione SOAP è stata generata un'eccezione.

Si applica a