WSDualHttpBinding.ClientBaseAddress Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the base address of the client.
public:
property Uri ^ ClientBaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri ClientBaseAddress { get; set; }
member this.ClientBaseAddress : Uri with get, set
Public Property ClientBaseAddress As Uri
Property Value
The Uri that is the base address of the client. The default value is null
.
Examples
The following example shows how to specify the wsDualHttpBinding binding in a configuration file.
WSDualHttpBinding dualBinding = new WSDualHttpBinding();
EndpointAddress endptadr = new EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server");
dualBinding.ClientBaseAddress = new Uri("http://localhost:8000/DuplexTestUsingCode/Client/");
Dim dualBinding As New WSDualHttpBinding()
Dim endptadr As New EndpointAddress("http://localhost:12000/DuplexTestUsingCode/Server")
dualBinding.ClientBaseAddress = New Uri("http://localhost:8000/DuplexTestUsingCode/Client/")
Remarks
This public URI for the client provides the callback endpoint required for the service to contact the client when the contract is duplex.
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour