SoapHeaderCollection::Add Method (SoapHeader^)

 
Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
int Add(
	SoapHeader^ header
)

Return Value

Type: System::Int32

The position at which the SoapHeader was inserted.

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

.NET Framework
Available since 1.1
Return to top
Show: