SoapHeaderCollection.Add(SoapHeader) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a SoapHeader to the 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
Parameters
- header
- SoapHeader
The SoapHeader to add to the SoapHeaderCollection.
Returns
The position at which the SoapHeader was inserted.
Examples
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)
Applies to
See also
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.