websitepanel/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/OfficeOnlineElement.cs
2015-01-30 00:28:47 -08:00

32 lines
No EOL
1 KiB
C#

using System.Configuration;
namespace WebsitePanel.WebDavPortal.WebConfigSections
{
public class OfficeOnlineElement : ConfigurationElement
{
private const string ExtensionKey = "extension";
private const string OwaViewKey = "OwaView";
private const string OwaEditorKey = "OwaEditor";
[ConfigurationProperty(ExtensionKey, IsKey = true, IsRequired = true)]
public string Extension
{
get { return this[ExtensionKey].ToString(); }
set { this[ExtensionKey] = value; }
}
[ConfigurationProperty(OwaViewKey, IsKey = true, IsRequired = true)]
public string OwaView
{
get { return this[OwaViewKey].ToString(); }
set { this[OwaViewKey] = value; }
}
[ConfigurationProperty(OwaEditorKey, IsKey = true, IsRequired = true)]
public string OwaEditor
{
get { return this[OwaEditorKey].ToString(); }
set { this[OwaEditorKey] = value; }
}
}
}