다음을 통해 공유


SoapMessage.Headers 속성

정의

현재 SOAP 요청 또는 SOAP 응답에 적용된 SOAP 헤더의 컬렉션입니다.

public:
 property System::Web::Services::Protocols::SoapHeaderCollection ^ Headers { System::Web::Services::Protocols::SoapHeaderCollection ^ get(); };
public System.Web.Services.Protocols.SoapHeaderCollection Headers { get; }
member this.Headers : System.Web.Services.Protocols.SoapHeaderCollection
Public ReadOnly Property Headers As SoapHeaderCollection

속성 값

현재 SOAP 요청 또는 SOAP 응답에 적용된 SOAP 헤더 중입니다 SoapHeaderCollection . nullSOAP 헤더가 없으면 입니다.

설명

SOAP 헤더는 SOAP 요청 또는 SOAP 응답의 선택적 부분입니다. ASP.NET 클라이언트를 사용하여 만든 XML 웹 서비스에서 SOAP 헤더를 사용하는 방법에 대한 자세한 내용은 클래스를 SoapHeader 참조하세요.

속성은 Headers 모든 단계에서 액세스할 수 있지만 해당 속성은 단계 및 AfterDeserialize 단계의 SOAP 헤더 정보 BeforeSerialize 로만 채워집니다.

적용 대상