EndpointAddressBuilder.Headers Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Collection<AddressHeader> Headers { get; }

Property Value

Type: System.Collections.ObjectModel.Collection<AddressHeader>

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

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

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: