Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

VariableAccessor.GetEnum(String, Enum) Method

Returns an Enum of type defaultValue.GetType() that contains the value of the specified variable.

[Visual Basic]
Public Overloads Sub GetEnum( _
   ByVal name As String, _
   ByVal defaultValue As Enum _
)
[C#]
public Enum GetEnum(
   string name,
   Enum defaultValue
);

Parameters

name
The name of the variable to be read.
defaultValue
The value to be returned if ResolveVariable returns null.

Return Value

An Enum of type defaultValue.GetType() that contains the value of the specified variable or defaultValue, if ResolveVariable returns null.

See Also

VariableAccessor Class | Spring.Objects.Factory.Config Namespace | VariableAccessor.GetEnum Overload List