websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/WebConfigSections/WebsitePanelConstantUserElement.cs
2014-12-03 11:43:26 +03:00

24 lines
No EOL
756 B
C#

using System.Configuration;
namespace WebsitePanel.WebDavPortal.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; }
}
}
}