BindingContext.ListenUriBaseAddress Property

 

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

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Uri ListenUriBaseAddress { get; set; }

Property Value

Type: System.Uri

The Uri at which the service endpoint listens.

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.

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

.NET Framework
Available since 3.0
Return to top
Show: