BindingContext.ListenUriBaseAddress Property
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 or sets the URI that provides the base address at which the service endpoint listens.
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
The Uri at which the service endpoint listens.
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
The address for the endpoint at which a service listens is obtained by appending the ListenUriRelativeAddress to the ListenUriBaseAddress. This absolute address can be set using the ListenUri property.
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: