LEADTOOLS Medical (Leadtools.Medical.Workstation assembly)
LEAD Technologies, Inc

Add(Type,Object) Method







The type of the serviceInstance to be added.
A service to be added into the collection.
Adds a service into the collection with a specific type.
Syntax
public void Add( 
   Type serviceType,
   object serviceInstance
)
'Declaration
 
Public Overloads Sub Add( _
   ByVal serviceType As Type, _
   ByVal serviceInstance As Object _
) 
'Usage
 
Dim instance As ServiceCollection
Dim serviceType As Type
Dim serviceInstance As Object
 
instance.Add(serviceType, serviceInstance)
 function Leadtools.Medical.Workstation.DataTypes.ServiceCollection.Add(Type,Object)( 
   serviceType ,
   serviceInstance 
)
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ServiceCollection Class
ServiceCollection Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.