Set any properties on instance that can be
resolved in the context.
| C# | Visual Basic | Visual 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 )
- TService
- Type of instance. Used only to provide method chaining.
- context (IComponentContext)
- The context from which to resolve the service.
- instance (TService)
- The instance to inject properties into.
instance.