ClientConfigurationCollection.

ValueExists(string, string) Method

Summary

Gets whether a specific value exists in the configuration file. Note that the value of the configuration entry can be empty (ie. System.String.Empty), all this method checks is whether there was a line with "section.name=" present.

Syntax

public bool ValueExists(string sectionName, string name)

Parameters

Name Type Description
sectionName string The name of the section to get the value of a configuration entry from.
name string The name of the configuration entry to retrieve the value for.

Return Value

Type Description
bool true if the value was specified; otherwise, false.