IVsComponentEnumeratorFactory2::GetComponentsOfPath Method (String^, Int32, Int32, String^, IEnumComponents^)
Enumerates the components on the local machine.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int GetComponentsOfPath( String^ bstrMachineName, int lEnumType, int bForceRefresh, String^ bstrPath, [OutAttribute] IEnumComponents^% pEnumerator )
Parameters
- bstrMachineName
-
Type:
System::String^
[in] Reserved, must be null.
- lEnumType
-
Type:
System::Int32
[in] Long integer containing the enumeration type. The value for this is from the CompEnum enumeration.
- bForceRefresh
-
Type:
System::Int32
[in] Reserved, must be false.
- bstrPath
-
Type:
System::String^
[in] String containing the path to the components.
- pEnumerator
-
Type:
Microsoft.VisualStudio.Shell.Interop::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.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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.