SoapHeaderCollection.Add(SoapHeader) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Adiciona um SoapHeader ao 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
O SoapHeader para adicionar ao SoapHeaderCollection.
Devoluções
A posição em que foi SoapHeader inserido.
Exemplos
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)