Cocktail Help Reference
GetAllInstances Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > CocktailBootstrapper Class : GetAllInstances Method



serviceType
The service to locate.

Glossary Item Box

Locates all instances of the supplied service.

Syntax

Visual Basic (Declaration) 
Protected Overrides Function GetAllInstances( _
   ByVal serviceType As Type _
) As IEnumerable(Of Object)
Visual Basic (Usage)Copy Code
Dim instance As CocktailBootstrapper
Dim serviceType As Type
Dim value As IEnumerable(Of Object)
 
value = instance.GetAllInstances(serviceType)
C# 
protected override IEnumerable<object> GetAllInstances( 
   Type serviceType
)
C++/CLI 
protected:
IEnumerable<Object^>^ GetAllInstances( 
   Type^ serviceType
) override 

Parameters

serviceType
The service to locate.

Return Value

The located services.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

CocktailBootstrapper Class
CocktailBootstrapper Members
Base Implementation in GetAllInstances

© 2013 All Rights Reserved.