Share via


IVsComponentEnumeratorFactory3.GetComponentsOfPathEx Method

Definition

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

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

grfFlags
UInt32

[in] Bit flags. Values taken from the __VSCOMPENUMEXFLAGS enumeration.

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 compsvcspkg80.idl:

HRESULT IVsComponentEnumeratorFactory3::GetComponentsOfPathEx(  
   [in] BSTR bstrMachineName,  
   [in] LONG lEnumType,  
   [in] BOOL bForceRefresh,  
   [in] VSCOMPENUMEXFLAGS grfFlags,  
   [in] BSTR bstrPath,  
   [out] IEnumComponents** pEnumerator  
);  

Applies to