Share via


IVsComponentEnumeratorFactory2.GetComponentsOfPath Method

Definition

Enumerates the components on the local machine.

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

bstrPath
String

[in] String containing the path to the components.

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.

Remarks

COM Signature

From compsvcspkg.idl:

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

If lEnumType is set to CompEnumType_AssemblyPaths, the Add Reference dialog box displays the specified paths only.

Applies to