mscorlib(4.0.0.0) API with additions
XmlElementEventArgs.cs
2 {
5  {
6  private object o;
7 
8  private XmlElement elem;
9 
10  private string qnames;
11 
12  private int lineNumber;
13 
14  private int linePosition;
15 
18  public object ObjectBeingDeserialized => o;
19 
22  public XmlElement Element => elem;
23 
26  public int LineNumber => lineNumber;
27 
30  public int LinePosition => linePosition;
31 
34  public string ExpectedElements
35  {
36  get
37  {
38  if (qnames != null)
39  {
40  return qnames;
41  }
42  return string.Empty;
43  }
44  }
45 
46  internal XmlElementEventArgs(XmlElement elem, int lineNumber, int linePosition, object o, string qnames)
47  {
48  this.elem = elem;
49  this.o = o;
50  this.qnames = qnames;
51  this.lineNumber = lineNumber;
52  this.linePosition = linePosition;
53  }
54  }
55 }
object ObjectBeingDeserialized
Gets the object the T:System.Xml.Serialization.XmlSerializer is deserializing.
int LinePosition
Gets the place in the line where the unknown element occurs if the XML reader is an T:System....
XmlElement Element
Gets the object that represents the unknown XML element.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: EventArgs.cs:9
int LineNumber
Gets the line number where the unknown element was encountered if the XML reader is an T:System....
Provides data for the E:System.Xml.Serialization.XmlSerializer.UnknownElement event.
Represents an element.
Definition: XmlElement.cs:7
string ExpectedElements
Gets a comma-delimited list of XML element names expected to be in an XML document instance.