Run an existing object through the container and perform injection on it.
public static BuildUp<>(
)
'Declaration
Public Shared Function BuildUp(Of )( _
ByVal As _
) As
'Usage
Dim existing As
Dim value As
value = ServiceLocator.BuildUp(Of T)(existing)
public:
static BuildUpgeneric<typename >
(
)
Parameters
- existing
- Instance to build up.
Type Parameters
- T
- Type of object to perform injection on
Return Value
The resulting object. By default, this will be existing, but container extensions may add things like automatic proxy creation which would cause this to return a different object (but still type compatible with T).