Autofac .NET Inversion of Control Container
InjectProperties<(Of <(TService>)>) Method (context, instance)
NamespacesAutofacResolutionExtensionsInjectProperties<(Of <(TService>)>)(IComponentContext, TService)
Set any properties on instance that can be resolved in the context.
Declaration Syntax
C#Visual BasicVisual C++
public static TService InjectProperties<TService>(
	IComponentContext context,
	TService instance
)
Public Shared Function InjectProperties(Of TService) ( _
	context As IComponentContext, _
	instance As TService _
) As TService
public:
generic<typename TService>
static TService InjectProperties(
	IComponentContext^ context, 
	TService instance
)
Generic Template Parameters
TService
Type of instance. Used only to provide method chaining.
Parameters
context (IComponentContext)
The context from which to resolve the service.
instance (TService)
The instance to inject properties into.
Return Value
instance.

Assembly: Autofac (Module: Autofac) Version: 2.1.13.813 (2.1.13.813)