mscorlib(4.0.0.0) API with additions
XmlSerializerSection.cs
2 
4 {
6  public sealed class XmlSerializerSection : ConfigurationSection
7  {
8  private ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
9 
10  private readonly ConfigurationProperty checkDeserializeAdvances = new ConfigurationProperty("checkDeserializeAdvances", typeof(bool), false, ConfigurationPropertyOptions.None);
11 
12  private readonly ConfigurationProperty tempFilesLocation = new ConfigurationProperty("tempFilesLocation", typeof(string), null, null, new RootedPathValidator(), ConfigurationPropertyOptions.None);
13 
14  private readonly ConfigurationProperty useLegacySerializerGeneration = new ConfigurationProperty("useLegacySerializerGeneration", typeof(bool), false, ConfigurationPropertyOptions.None);
15 
16  protected internal override ConfigurationPropertyCollection Properties
17  {
18  protected get
19  {
20  return properties;
21  }
22  }
23 
27  [ConfigurationProperty("checkDeserializeAdvances", DefaultValue = false)]
28  public bool CheckDeserializeAdvances
29  {
30  get
31  {
32  return (bool)base[checkDeserializeAdvances];
33  }
34  set
35  {
36  base[checkDeserializeAdvances] = value;
37  }
38  }
39 
42  [ConfigurationProperty("tempFilesLocation", DefaultValue = null)]
43  public string TempFilesLocation
44  {
45  get
46  {
47  return (string)base[tempFilesLocation];
48  }
49  set
50  {
51  base[tempFilesLocation] = value;
52  }
53  }
54 
58  [ConfigurationProperty("useLegacySerializerGeneration", DefaultValue = false)]
60  {
61  get
62  {
63  return (bool)base[useLegacySerializerGeneration];
64  }
65  set
66  {
67  base[useLegacySerializerGeneration] = value;
68  }
69  }
70 
73  {
74  properties.Add(checkDeserializeAdvances);
75  properties.Add(tempFilesLocation);
76  properties.Add(useLegacySerializerGeneration);
77  }
78  }
79 }
Validates the rules governing the use of the tempFilesLocation configuration switch.
Definition: __Canon.cs:3
bool UseLegacySerializerGeneration
Gets or sets a value that indicates whether the specified object uses legacy serializer generation.
XmlSerializerSection()
Initializes a new instance of the T:System.Xml.Serialization.Configuration.XmlSerializerSection class...
Handles the XML elements used to configure XML serialization.
bool CheckDeserializeAdvances
Gets or sets a value that determines whether an additional check of progress of the T:System....
string TempFilesLocation
Returns the location that was specified for the creation of the temporary file.