System.Web.Services.Protocols.SoapHeaderCollection.Insert Method

Inserts a System.Web.Services.Protocols.SoapHeader into the System.Web.Services.Protocols.SoapHeaderCollection at the specified index.

Syntax

public void Insert (int index, SoapHeader header)

Parameters

index
The zero-based index at which to insert the System.Web.Services.Protocols.SoapHeader into the System.Web.Services.Protocols.SoapHeaderCollection.
header
The System.Web.Services.Protocols.SoapHeader to insert into the System.Web.Services.Protocols.SoapHeaderCollection.

Remarks

If the index parameter equals the number of items in the collection, then the System.Web.Services.Protocols.SoapHeader is appended to the end of the collection.

The System.Web.Services.Protocols.SoapHeader elements after the insertion point move down to accommodate the new element.

Requirements

Namespace: System.Web.Services.Protocols
Assembly: System.Web.Services (in System.Web.Services.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0