Condividi tramite


SoapHeaderCollection.Add(SoapHeader) Metodo

Definizione

Aggiunge un oggetto SoapHeader a SoapHeaderCollection.

public:
 int Add(System::Web::Services::Protocols::SoapHeader ^ header);
public int Add (System.Web.Services.Protocols.SoapHeader header);
member this.Add : System.Web.Services.Protocols.SoapHeader -> int
Public Function Add (header As SoapHeader) As Integer

Parametri

header
SoapHeader

Oggetto SoapHeader da aggiungere a SoapHeaderCollection.

Restituisce

Int32

Posizione in cui è stato inserito l'oggetto SoapHeader.

Esempio

mySoapHeader = gcnew MySoapHeader;
mySoapHeader->text = "This is the second SOAP header";
mySoapHeaderCollection->Add( mySoapHeader );
mySoapHeader = new MySoapHeader();
mySoapHeader.text = "This is the second SOAP header";
mySoapHeaderCollection.Add(mySoapHeader);
mySoapHeader = New MySoapHeader()
mySoapHeader.text = "This is the second SOAP header"
mySoapHeaderCollection.Add(mySoapHeader)

Si applica a

Vedi anche