websitepanel/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebsitePanelConstantUserElement.cs
2015-01-13 04:18:56 -08:00

24 lines
No EOL
762 B
C#

using System.Configuration;
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
{
public class WebsitePanelConstantUserElement : ConfigurationElement
{
private const string LoginKey = "login";
private const string PasswordKey = "password";
[ConfigurationProperty(LoginKey, IsKey = true, IsRequired = true)]
public string Login
{
get { return this[LoginKey].ToString(); }
set { this[LoginKey] = value; }
}
[ConfigurationProperty(PasswordKey, IsKey = true, IsRequired = true)]
public string Password
{
get { return this[PasswordKey].ToString(); }
set { this[PasswordKey] = value; }
}
}
}