Registers the component service type TService with and implemetation of type TImp.
| C# | Visual Basic | Visual C++ |
public void RegisterComponent<TService, TImp>( string key )
Public Sub RegisterComponent(Of TService, TImp) ( _ key As String _ )
public: generic<typename TService, typename TImp> virtual void RegisterComponent( String^ key ) sealed
- TService
- The contract type.
- TImp
- The implementing type.
- key (String)
- The key or name of the service.