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
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.