Share via


IVsComponentEnumeratorFactory2.GetComponents Method

Definition

Provides an enumerator for all of the components in a package.

public:
 int GetComponents(System::String ^ bstrMachineName, int lEnumType, int bForceRefresh, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumComponents ^ % pEnumerator);
public:
 int GetComponents(Platform::String ^ bstrMachineName, int lEnumType, int bForceRefresh, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumComponents ^ &  pEnumerator);
int GetComponents(std::wstring const & bstrMachineName, int lEnumType, int bForceRefresh, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumComponents const & & pEnumerator);
public int GetComponents (string bstrMachineName, int lEnumType, int bForceRefresh, out Microsoft.VisualStudio.Shell.Interop.IEnumComponents pEnumerator);
abstract member GetComponents : string * int * int * IEnumComponents -> int
Public Function GetComponents (bstrMachineName As String, lEnumType As Integer, bForceRefresh As Integer, ByRef pEnumerator As IEnumComponents) As Integer

Parameters

bstrMachineName
String

[in] Reserved, must be null.

lEnumType
Int32

[in] Long integer containing the enumeration type. The value for this is from the CompEnum enumeration.

bForceRefresh
Int32

[in] Reserved, must be false.

pEnumerator
IEnumComponents

[out] Pointer to an enumerator object. This returns the list of components. The list can be either COM-components, Visual Studio assemblies, or a list of directories in which Visual Studio looks for references. The type of components listed is determined by lEnumType.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

COM Signature

From compsvcspkg.idl:

HRESULT IVsComponentEnumeratorFactory2::GetComponents(  
   [in] BSTR bstrMachineName,  
   [in] LONG lEnumType,  
   [in] BOOL bForceRefresh,  
   [out] IEnumComponents** pEnumerator  
);  

Applies to