Add<TService>(TService) Method

Summary
Adds a service into the collection with a specific type.
Syntax
C#
C++/CLI
public void Add<TService>( 
   TService serviceInstance 
) 
public:  
   generic<typename TService> 
   void Add( 
      TService serviceInstance 
   ) 

Parameters

serviceInstance
A service to be added into the collection.

Type Parameters

TService
The type of the  serviceInstance to be added.

Remarks

If another service exists with the same type this method will throw an System.InvalidOperationException.

Requirements

Target Platforms

Help Version 22.0.2023.2.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Workstation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.