Config Helper
AppSettingExists Method
Example 



KellermanSoftware.ConfigHelper Namespace > ConfigReaderWriter Class : AppSettingExists Method
Returns true if the app setting exists
Syntax
Public Function AppSettingExists( _
   ByVal name As String _
) As Boolean
Dim instance As ConfigReaderWriter
Dim name As String
Dim value As Boolean
 
value = instance.AppSettingExists(name)
public bool AppSettingExists( 
   string name
)
public:
bool AppSettingExists( 
   String^ name
) 

Parameters

name
Example
//Trial Mode
ConfigReaderWriter config = new ConfigReaderWriter();
 
//License Mode
//ConfigReaderWriter config = new ConfigReaderWriter("John Smith 10000", "psdfljksfdl==");
 
bool settingExists = config.AppSettingExists("SomeSettingThatDoesntExist");
Console.WriteLine(settingExists);
'Trial Mode
Dim config As New ConfigReaderWriter()
 
'License Mode
'Dim config As New ConfigReaderWriter("John Smith 10000", "psdfljksfdl==")
 
Dim settingExists As Boolean = config.AppSettingExists("SomeSettingThatDoesntExist")
Console.WriteLine(settingExists)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ConfigReaderWriter Class
ConfigReaderWriter Members