AifServiceContainer.AddService<T>(Type, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the service.
public:
generic <typename T>
where T : class void AddService(Type ^ type, T service);
public void AddService<T>(Type type, T service) where T : class;
member this.AddService : Type * 'T -> unit (requires 'T : null)
Public Sub AddService(Of T As Class) (type As Type, service As T)
Type Parameters
- T
Specifies the type of service.
Parameters
- type
- Type
Specifies the service type, interface.
- service
- T
Specifies the service.