Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. public class FtpSettingsSection : ConfigurationSection
  2. {
  3.     [ConfigurationProperty("host", IsRequired = true)]
  4.     public HostElement Host
  5.     {
  6.         get { return (HostElement)this["host"]; }
  7.         set { this["host"] = value; }
  8.     }
  9.  
  10. }
  11.  
  12. public class HostElement : ConfigurationElement
  13. {
  14.     [ConfigurationProperty("URL", IsRequired = true)]
  15.     public string URL
  16.     {
  17.         get { return (string)this["URL"]; }
  18.         set { this["URL"] = value; }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement