Add(Type,object) Method

Summary

Adds a service into the collection with a specific type.

Syntax
C#
VB
C++
public void Add( 
   Type serviceType, 
   object serviceInstance 
) 
  
Public Overloads Sub Add( _ 
   ByVal serviceType As Type, _ 
   ByVal serviceInstance As Object _ 
)  
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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Workstation Assembly