共用方式為


BindingContext.ListenUriBaseAddress 屬性

定義

取得或設定提供服務端點接聽之基底位址的 URI。

public:
 property Uri ^ ListenUriBaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri ListenUriBaseAddress { get; set; }
member this.ListenUriBaseAddress : Uri with get, set
Public Property ListenUriBaseAddress As Uri

屬性值

Uri

服務端點接聽的 Uri

範例

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
Uri baseAddress = context.ListenUriBaseAddress;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim baseAddress As Uri = context.ListenUriBaseAddress

備註

取得服務接聽之端點位址的方式,是將 ListenUriRelativeAddress 附加至 ListenUriBaseAddress。 可以使用 ListenUri 屬性來設定這個絕對位址。

適用於