ServiceHostBase.LoadConfigurationSection Method (ServiceElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Loads the service element from the configuration file of the hosted service.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected void LoadConfigurationSection(
	ServiceElement serviceSection
)

Parameters

serviceSection
Type: System.ServiceModel.Configuration.ServiceElement

The ServiceElement to be loaded from configuration.

Exception Condition
ArgumentNullException

serviceSection is null.

InvalidOperationException

The description of the service hosted is null.

.NET Framework
Available since 3.0
Return to top
Show: