2 using System.ComponentModel;
3 using System.Configuration;
4 using System.ServiceModel.Configuration;
7 namespace System.ServiceModel.Discovery.Configuration
9 public sealed class ScopeElement : ConfigurationElement
11 static ConfigurationPropertyCollection properties;
12 static ConfigurationProperty scope;
14 static ScopeElement ()
16 scope = new ConfigurationProperty ("scopes", typeof (Uri), null, new CallbackValidator (typeof (ScopeElement), null/*FIXME: fill it*/), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
17 properties = new ConfigurationPropertyCollection ();
18 properties.Add (scope);
21 public ScopeElement ()
26 [ConfigurationProperty ("scope", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
27 [CallbackValidator (CallbackMethodName = "ScopeValidatorCallback", Type = typeof (ScopeElement))]
29 get { return (Uri) Properties [scope]; }
30 set { Properties [scope] = value; }