Editare

Partajați prin


BindingContext.ListenUriBaseAddress Property

Definition

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

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;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim baseAddress As Uri = 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