SoapHeaderCollection.Add(SoapHeader) Метод

Определение

Добавляет объект SoapHeader в коллекцию 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

Параметры

header
SoapHeader

Объект SoapHeader, добавляемый в список SoapHeaderCollection.

Возвращаемое значение

Позиция, в которую вставлен объект SoapHeader.

Примеры

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)

Применяется к

См. также раздел