←Select platform

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.Workstation Assembly