BindingContext.ListenUriBaseAddress Propriété

Définition

Obtient ou définit l'URI qui fournit l'adresse de base sur laquelle le point de terminaison de service écoute.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

Valeur de propriété

Uri

Uri au niveau duquel le point de terminaison de service effectue son écoute.The Uri at which the service endpoint listens.

Exemples

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

Remarques

L'adresse du point de terminaison sur lequel un service écoute est obtenue en ajoutant ListenUriRelativeAddress à ListenUriBaseAddress.The address for the endpoint at which a service listens is obtained by appending the ListenUriRelativeAddress to the ListenUriBaseAddress. Cette adresse absolue peut être définie à l'aide de la propriété ListenUri.This absolute address can be set using the ListenUri property.

S’applique à