共用方式為


EndpointAddressBuilder.Headers 屬性

定義

取得產生器可以建立之端點的位址標頭清單。

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)

屬性值

Collection<AddressHeader>

List<T> 型別的 AddressHeader,內含產生器可以建立的端點的位址標頭。

範例

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"))

備註

可使用 EndpointAddressBuilder(EndpointAddress) 建構函式來設定端點的位址標頭。

適用於