mscorlib(4.0.0.0) API with additions
XmlAttributeEventArgs.cs
2 {
5  {
6  private object o;
7 
8  private XmlAttribute attr;
9 
10  private string qnames;
11 
12  private int lineNumber;
13 
14  private int linePosition;
15 
18  public object ObjectBeingDeserialized => o;
19 
22  public XmlAttribute Attr => attr;
23 
26  public int LineNumber => lineNumber;
27 
30  public int LinePosition => linePosition;
31 
34  public string ExpectedAttributes
35  {
36  get
37  {
38  if (qnames != null)
39  {
40  return qnames;
41  }
42  return string.Empty;
43  }
44  }
45 
46  internal XmlAttributeEventArgs(XmlAttribute attr, int lineNumber, int linePosition, object o, string qnames)
47  {
48  this.attr = attr;
49  this.o = o;
50  this.qnames = qnames;
51  this.lineNumber = lineNumber;
52  this.linePosition = linePosition;
53  }
54  }
55 }
XmlAttribute Attr
Gets an object that represents the unknown XML attribute.
object ObjectBeingDeserialized
Gets the object being deserialized.
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
Definition: XmlAttribute.cs:7
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: EventArgs.cs:9
string ExpectedAttributes
Gets a comma-delimited list of XML attribute names expected to be in an XML document instance.
int LineNumber
Gets the line number of the unknown XML attribute.
int LinePosition
Gets the position in the line of the unknown XML attribute.
Provides data for the E:System.Xml.Serialization.XmlSerializer.UnknownAttribute event.