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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.