BindingContext.ListenUriBaseAddress Property

Definition

Gets or sets the URI that provides the base address at which the service endpoint listens.

public Uri ListenUriBaseAddress { get; set; }

Property Value

Uri

The Uri at which the service endpoint listens.

Examples

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

Remarks

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.

Applies to

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