public Parse ( string name, string value, XmlNode node ) : bool | ||
name | string | |
value | string | |
node | XmlNode | |
return | bool |
public bool Parse(string name, string value, XmlNode node)
{
switch (name)
{
case "PageEncoding":
try
{
PageEncoding = (value != String.Empty) ? Encoding.GetEncoding(value) : Encoding.Default;
}
catch (Exception e)
{
throw new ConfigurationErrorsException(e.Message, node);
}
return true;
}
return false;
}