Responder Developer Guide
AutoRegister(Func<Type,Boolean>) Method


Predicate to determine if a particular type should be registered
Attempt to automatically register all non-generic classes and interfaces in the current app domain. Types will only be registered if they pass the supplied registration predicate. If more than one class implements an interface then only one implementation will be registered although no error will be thrown.
Syntax
'Declaration
 
Public Overloads Sub AutoRegister( _
   ByVal registrationPredicate As Func(Of Type,Boolean) _
) 
'Usage
 
Dim instance As TinyIoCContainer
Dim registrationPredicate As Func(Of Type,Boolean)
 
instance.AutoRegister(registrationPredicate)
public void AutoRegister( 
   Func<Type,bool> registrationPredicate
)

Parameters

registrationPredicate
Predicate to determine if a particular type should be registered
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

TinyIoCContainer Class
TinyIoCContainer Members
Overload List

 

 


Send Comment