Freigeben über


SoapHeaderCollection.Add(SoapHeader) Methode

Definition

Fügt der SoapHeader einen SoapHeaderCollection hinzu.

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

Parameter

header
SoapHeader

Das SoapHeader, das in SoapHeaderCollection eingefügt werden soll.

Gibt zurück

Int32

Die Position, an der der SoapHeader eingefügt wurde.

Beispiele

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)

Gilt für

Siehe auch