Condividi tramite


AddressingHeaders.SetFaultResponseHeaders Method

Sets the addressing headers for a fault response based on the specified source AddressingHeaders .

Namespace: Microsoft.Web.Services3.Addressing
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim source As AddressingHeaders
Dim addressingHeaders1 As AddressingHeaders
addressingHeaders1.SetFaultResponseHeaders(source)

Syntax

'Declaration
Public Sub SetFaultResponseHeaders( _
    ByVal source As AddressingHeaders _
)
public void SetFaultResponseHeaders(
    AddressingHeaders source
);
public:
void SetFaultResponseHeaders(
    AddressingHeaders^ source
);
public void SetFaultResponseHeaders(
    AddressingHeaders source
);
public function SetFaultResponseHeaders(
     source : AddressingHeaders
) : Void;

Parameters

  • source
    An AddressingHeaders instance containing the source headers to add to this SetFaultResponseHeaders instance.

Exceptions

Exception type Condition
ArgumentNullException

source is null .

Remarks

SetFaultResponseHeaders will set the value of the Destination property of the current AddressingHeaders to the first non null value among the FaultTo , ReplyTo , or From properties of the specified AddressingHeaders. If all these properties are null the Destination property is set to AnonymousRole . Additionaly, if the source AddressingHeaders have specified values for To and MessageID the From and RelatesTo properties of the current AddressingHeaders are set to those respective values.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

AddressingHeaders Class
AddressingHeaders Members
Microsoft.Web.Services3.Addressing Namespace