다음을 통해 공유


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입니다.

반환

Int32

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)

적용 대상

추가 정보