Compartir a través de


SoapHeaderCollection.Add(SoapHeader) Método

Definición

Agrega un objeto 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

Parámetros

header
SoapHeader

SoapHeader que se va a agregar a SoapHeaderCollection.

Devoluciones

Posición en la que se insertó SoapHeader.

Ejemplos

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)

Se aplica a

Consulte también