Επεξεργασία

Κοινή χρήση μέσω


EndpointAddressBuilder.Headers Property

Definition

Gets the list of address headers for the endpoints that the builder can create.

public:
 property System::Collections::ObjectModel::Collection<System::ServiceModel::Channels::AddressHeader ^> ^ Headers { System::Collections::ObjectModel::Collection<System::ServiceModel::Channels::AddressHeader ^> ^ get(); };
public System.Collections.ObjectModel.Collection<System.ServiceModel.Channels.AddressHeader> Headers { get; }
member this.Headers : System.Collections.ObjectModel.Collection<System.ServiceModel.Channels.AddressHeader>
Public ReadOnly Property Headers As Collection(Of AddressHeader)

Property Value

The List<T> of type AddressHeader that contains the address headers for the endpoints that the builder can create.

Examples

EndpointAddressBuilder eab = new EndpointAddressBuilder();
eab.Uri = new Uri("http://localhost/Uri");
eab.Headers.Add(AddressHeader.CreateAddressHeader("n", "ns", "val"));
Dim eab As New EndpointAddressBuilder()
eab.Uri = New Uri("http://localhost/Uri")
eab.Headers.Add(AddressHeader.CreateAddressHeader("n", "ns", "val"))

Remarks

Address headers for the endpoints can be set using the EndpointAddressBuilder(EndpointAddress) constructor.

Applies to