Udostępnij za pośrednictwem


SoapHeaderCollection.Add(SoapHeader) Metoda

Definicja

Dodaje element do SoapHeader elementu 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

Parametry

header
SoapHeader

Element SoapHeader do dodania do elementu SoapHeaderCollection.

Zwraca

Pozycja, w której SoapHeader została wstawiona.

Przykłady

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)

Dotyczy

Zobacz też