Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionParserHelper.GetAttributeValue(XmlElement, String) Method

Returns the value of the element's attribute or null, if the attribute is not specified.

[Visual Basic]
Public Overloads Sub GetAttributeValue( _
   ByVal element As XmlElement, _
   ByVal attributeName As String _
public string GetAttributeValue(
   XmlElement element,
   string attributeName


This is a helper for bypassing the behavior of GetAttribute to return Empty if the attribute does not exist.

See Also

ObjectDefinitionParserHelper Class | Spring.Objects.Factory.Xml Namespace | ObjectDefinitionParserHelper.GetAttributeValue Overload List