BindingContext.ListenUriRelativeAddress Property

Definition

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

public string ListenUriRelativeAddress { get; set; }

Property Value

The relative address at which the service endpoint listens.

Examples

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
string relAddress = context.ListenUriRelativeAddress;

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