Resolves the traits type.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
Type ResolveTraitsType()
Visual Basic (Declaration)
Function ResolveTraitsType As Type

Return Value

The traits type.

Remarks

The traits type is a subclass of Traits.

This method may cause plugin resources to be loaded. The caller should therefore assume that the operation is potentially time-consuming and may fail.

This method effectively performs two lookups. First it resolves the service type then it searches for the associated TraitsAttribute on the service. Consequently it is not possible to obtain the traits type name without loading the assembly in which the service and traits have been defined.

Exceptions

ExceptionCondition
Gallio.Runtime..::.RuntimeExceptionThrown if an error occurs during resolution.

See Also