[This is preliminary documentation and is subject to change.]

Reads attribute at specified path.

Namespace:  Phoenix.Configuration
Assembly:  PhoenixShared (in PhoenixShared.dll) Version: 0.7.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public virtual T GetEnumAttribute<T>(
	T defaultValue,
	string attribute,
	params Object[] nodes
)
Public Overridable Function GetEnumAttribute(Of T) ( _
	defaultValue As T, _
	attribute As String, _
	ParamArray nodes As Object() _
) As T
public:
generic<typename T>
virtual T GetEnumAttribute(
	T defaultValue, 
	String^ attribute, 
	... array<Object^>^ nodes
)

Parameters

defaultValue
T
Default value if element is not found.
attribute
String
Attribute name.
nodes
array< Object >[]()[]
Element path

Type Parameters

T
Enum type which should be read.

Return Value

T containing read value or default value.

See Also