LEADTOOLS Medical (Leadtools.Medical.Workstation assembly)

Add(Type,Object) Method

Show in webframe






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)

            

            
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

See Also

Reference

ServiceCollection Class
ServiceCollection Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.