Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectDefinitionParser.GetAttributeValue(XmlElement, String, String) Method

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

[Visual Basic]
Protected Overloads Shared Sub GetAttributeValue( _
   ByVal element As XmlElement, _
   ByVal attributeName As String, _
   ByVal defaultValue As String _
)
[C#]
protected static string GetAttributeValue(
   XmlElement element,
   string attributeName,
   string defaultValue
);

Remarks

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

See Also

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