7 public sealed
class IdnElement : ConfigurationElement
13 if (sourceType == typeof(
string))
22 string text = value as string;
31 case "allexceptintranet":
35 return base.ConvertFrom(context, culture, value);
41 private ConfigurationPropertyCollection properties =
new ConfigurationPropertyCollection();
43 private readonly ConfigurationProperty enabled =
new ConfigurationProperty(
"enabled", typeof(
UriIdnScope),
UriIdnScope.None,
new UriIdnScopeTypeConverter(),
null, ConfigurationPropertyOptions.None);
45 protected internal override ConfigurationPropertyCollection Properties
55 [ConfigurationProperty(
"enabled", DefaultValue =
UriIdnScope.None)]
64 base[enabled] = value;
71 properties.Add(enabled);
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
Provides contextual information about a component, such as its container and property descriptor.
UriIdnScope Enabled
Gets or sets the value of the T:System.Configuration.IdnElement configuration setting.
Represents type declarations: class types, interface types, array types, value types,...
bool CanConvertFrom(Type sourceType)
Returns whether this converter can convert an object of the given type to the type of this converter.
Provides the configuration setting for International Domain Name (IDN) processing in the T:System....
Provides information about a specific culture (called a locale for unmanaged code development)....
UriIdnScope
Provides the possible values for the configuration setting of the T:System.Configuration....
Provides a unified way of converting types of values to other types, as well as for accessing standar...
IdnElement()
Initializes a new instance of the T:System.Configuration.IdnElement class.