Apply this IObjectPostProcessorbefore the target object gets instantiated.
The object to expose instead of a default instance of the target object.
The returned object may be a proxy to use instead of the target object, effectively suppressing the default instantiation of the target object.
If the object is returned by this method is not a null reference (Nothing in Visual Basic), the object creation process will be short-circuited. The returned object will not be processed any further; in particular, no further IObjectPostProcessor callbacks will be applied to it. This mechanism is mainly intended for exposing a proxy instead of an actual target object.
This callback will only be applied to object definitions with an object class. In particular, it will not be applied to objects with a "factory-method" (i.e. objects that are to be instantiated via a layer of indirection anyway).
|ObjectsException||In the case of any errors.|