Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

TypeRegistry.RegisterType(String, Type) Method

Registers an alias for the supplied Type.

[Visual Basic]
Public Overloads Shared Sub RegisterType( _
   ByVal alias As String, _
   ByVal type As Type _
)
[C#]
public static void RegisterType(
   string alias,
   Type type
);

Parameters

alias
The alias for the supplied Type.
type
The Type to register the supplied alias under.

Exceptions

Exception Type Condition
ArgumentNullException If the supplied type is a null reference (Nothing in Visual Basic); or if the supplied alias is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).

See Also

TypeRegistry Class | Spring.Core.TypeResolution Namespace | TypeRegistry.RegisterType Overload List