ChannelFactory.ApplyConfiguration(String) Methode

Definitie

Initialiseert de kanaalfactory met het gedrag van een opgegeven configuratiebestand en met die in het service-eindpunt van de kanaalfactory.

protected:
 virtual void ApplyConfiguration(System::String ^ configurationName);
protected virtual void ApplyConfiguration(string configurationName);
abstract member ApplyConfiguration : string -> unit
override this.ApplyConfiguration : string -> unit
Protected Overridable Sub ApplyConfiguration (configurationName As String)

Parameters

configurationName
String

De naam van het configuratiebestand.

Uitzonderingen

Het service-eindpunt van de kanaalfactory is null.

Opmerkingen

Als configurationName dat het is null, worden alleen het gedrag dat is opgegeven in het service-eindpunt geladen. Als het jokerteken *wordt gebruikt, wordt een eindpuntconfiguratie in het clientconfiguratiebestand gebruikt, maar alleen als er precies één is. Anders wordt er een uitzondering gegenereerd. Elke andere waarde voor de configurationName, inclusief de lege tekenreeks '', komt overeen met de eindpuntconfiguratie met dezelfde naam. Zie het onderwerp WCF-clientconfiguratie voor een bespreking van de clientconfiguratie.

Van toepassing op