EndpointAddressBuilder.Headers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.