LEADTOOLS Medical (Leadtools.Medical.Workstation assembly)

Add<TService>(TService) 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<TService>( 
   TService serviceInstance
)
'Declaration
 
Public Overloads Sub Add(Of TService)( _
   ByVal serviceInstance As TService _
) 
'Usage
 
Dim instance As ServiceCollection
Dim serviceInstance As TService
 
instance.Add(Of TService)(serviceInstance)

            

            
public: void Add<TService>( 
   TService* serviceInstance
) 
public:
void Addgeneric<typename TService>
( 
   TService* serviceInstance
) 

Parameters

serviceInstance
A service to be added into the collection.

Type Parameters

TService
The type of the serviceInstance to be added.
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.