SettingsKeyInfoProvider GetValueFromDB

David Pearson asked on March 20, 2017 15:11

I was wondering what is the difference between SettingsKeyInfoProvider.GetValue(SettingsKeyName) and .GetValueFromDB(SettingsKeyName)?

Thanks David

Correct Answer

Rui Wang answered on March 20, 2017 15:18

Hi David,

These are documented pretty well

SettingsKeyInfoProvider.GetValue Method (SettingsKeyName)

Return Value Type: String Returns "" if the key does not exist

SettingsKeyInfoProvider.GetValueFromDB Method (SettingsKeyName)

Return Value Type: String

You will have to take care the validation part for the second one.

1 votesVote for this answer Unmark Correct answer

Recent Answers

David Pearson answered on March 20, 2017 15:54

Thanks Rui, Main difference is GetValue will return not found. Both get the value from the same source...

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.