BindingContext.ListenUriRelativeAddress Propriété

Définition

Obtient ou définit l'URI qui fournit l'adresse relative sur laquelle le point de terminaison de service écoute.Gets or sets the URI that provides the relative address at which the service endpoint listens.

public:
 property System::String ^ ListenUriRelativeAddress { System::String ^ get(); void set(System::String ^ value); };
public string ListenUriRelativeAddress { get; set; }
member this.ListenUriRelativeAddress : string with get, set
Public Property ListenUriRelativeAddress As String

Valeur de propriété

Adresse relative sur laquelle le point de terminaison de service écoute.The relative address at which the service endpoint listens.

Exemples

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

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 à