Add(Type,object) Method

Summary
Adds a service into the collection with a specific type.
Syntax
C#
C++/CLI
public void Add( 
   Type serviceType, 
   object serviceInstance 
) 
public:  
   void Add( 
      Type^ serviceType, 
      Object^ serviceInstance 
   ) 

Parameters

serviceType
The type of the  serviceInstance to be added.

serviceInstance
A service to be added into the collection.

Remarks

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

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.