"Boni" <oilia@nospam> schrieb
Dear all,
if I have
<XmlElement("MULTITHREADED")> _Public m_multithreaded As Boolean
How do I get the attribute value at the run time?
I need something like
dim _attr as string=GetAttr(m_multithreaded,XmlElement)
Example in a Form:
<System.Xml.Serialization.XmlElementAttribute("MUL TITHREADED")> _
Public m_multithreaded As Boolean
Private Sub Form_Load( _
ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim atts As Object()
atts = Me.GetType.GetField("m_multithreaded").GetCustomAt tributes( _
GetType(System.Xml.Serialization.XmlElementAttribu te), False _
)
For Each att As System.Xml.Serialization.XmlElementAttribute In atts
'access att properties here
Next
End Sub
Armin