Determines whether the specified type with the specified tag can be resolved.
Parameters
Name
Description
type
The type.
tag
The tag.
Returns
true if the specified type with the specified tag can be resolved; otherwise,false.
CanResolveAll(Type[] types)
Determines whether all types specified can be resolved. Though Object) will returnnull at the array index when a type cannot be resolved, this method will actually check whether all the specified types are registered. It is still possible to call Object), even when this method returnsfalse.
Parameters
Name
Description
types
The types.
Returns
true if all types specified can be resolved; otherwise,false.
CanResolveMultiple(Type[] types)
Determines whether all types specified can be resolved. Though Object) will returnnull at the array index when a type cannot be resolved, this method will actually check whether all the specified types are registered. It is still possible to call Object), even when this method returnsfalse.
Parameters
Name
Description
types
The types.
Returns
true if all types specified can be resolved; otherwise,false.
Resolve(Type type, object tag)
Resolves the specified type with the specified tag.
Parameters
Name
Description
type
The type.
tag
The tag.
Returns
The resolved object.
Exceptions
Name
Description
ArgumentNullException
The type isnull.
T:Catel.IoC.TypeNotRegisteredException
The type is not found in any container.
ResolveAll(Type[] types, object tag)
Resolves the specified types with the specified tag.
Parameters
Name
Description
types
The types.
tag
The tag.
Returns
A list of resolved types. If one of the types cannot be resolved, that location in the array will benull.
ResolveMultiple(Type[] types, object tag)
Resolves the specified types with the specified tag.
Parameters
Name
Description
types
The types.
tag
The tag.
Returns
A list of resolved types. If one of the types cannot be resolved, that location in the array will benull.
Have a question about Catel? Use StackOverflow with the Catel tag!