IVsComponentEnumeratorFactory3.GetComponentsOfPathEx Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetComponentsOfPathEx ( _
    bstrMachineName As String, _
    lEnumType As Integer, _
    bForceRefresh As Integer, _
    grfFlags As UInteger, _
    bstrPath As String, _
    <OutAttribute> ByRef pEnumerator As IEnumComponents _
) As Integer
int GetComponentsOfPathEx(
    string bstrMachineName,
    int lEnumType,
    int bForceRefresh,
    uint grfFlags,
    string bstrPath,
    out IEnumComponents pEnumerator
)
int GetComponentsOfPathEx(
    [InAttribute] String^ bstrMachineName, 
    [InAttribute] int lEnumType, 
    [InAttribute] int bForceRefresh, 
    [InAttribute] unsigned int grfFlags, 
    [InAttribute] String^ bstrPath, 
    [OutAttribute] IEnumComponents^% pEnumerator
)
abstract GetComponentsOfPathEx : 
        bstrMachineName:string * 
        lEnumType:int * 
        bForceRefresh:int * 
        grfFlags:uint32 * 
        bstrPath:string * 
        pEnumerator:IEnumComponents byref -> int
function GetComponentsOfPathEx(
    bstrMachineName : String, 
    lEnumType : int, 
    bForceRefresh : int, 
    grfFlags : uint, 
    bstrPath : String, 
    pEnumerator : IEnumComponents
) : int

Parameters

  • bstrMachineName
    Type: System.String

     [in] Reserved, must be nulla null reference (Nothing in Visual Basic).

  • 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.Int32
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
);

.NET Framework Security

See Also

Reference

IVsComponentEnumeratorFactory3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace