SoapHeaderCollection.Add(SoapHeader) 메서드

정의

SoapHeaderSoapHeaderCollection에 추가합니다.

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)

적용 대상

추가 정보