Compartilhar via


IVsSolutionBuildManager.FindActiveProjectCfg Method

Determines the project configuration that is currently active.

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

Syntax

'Declaration
Function FindActiveProjectCfg ( _
    pvReserved1 As IntPtr, _
    pvReserved2 As IntPtr, _
    pIVsHierarchy_RequestedProject As IVsHierarchy, _
    <OutAttribute> ppIVsProjectCfg_Active As IVsProjectCfg() _
) As Integer
int FindActiveProjectCfg(
    IntPtr pvReserved1,
    IntPtr pvReserved2,
    IVsHierarchy pIVsHierarchy_RequestedProject,
    IVsProjectCfg[] ppIVsProjectCfg_Active
)
int FindActiveProjectCfg(
    [InAttribute] IntPtr pvReserved1, 
    [InAttribute] IntPtr pvReserved2, 
    [InAttribute] IVsHierarchy^ pIVsHierarchy_RequestedProject, 
    [OutAttribute] array<IVsProjectCfg^>^ ppIVsProjectCfg_Active
)
abstract FindActiveProjectCfg : 
        pvReserved1:IntPtr * 
        pvReserved2:IntPtr * 
        pIVsHierarchy_RequestedProject:IVsHierarchy * 
        ppIVsProjectCfg_Active:IVsProjectCfg[] byref -> int
function FindActiveProjectCfg(
    pvReserved1 : IntPtr, 
    pvReserved2 : IntPtr, 
    pIVsHierarchy_RequestedProject : IVsHierarchy, 
    ppIVsProjectCfg_Active : IVsProjectCfg[]
) : int

Parameters

  • pvReserved1
    Type: IntPtr

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

  • pvReserved2
    Type: IntPtr

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

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionBuildManager::FindActiveProjectCfg(
   [in, unique] IVsHierarchy *pvReserved1,
   [in, unique] LPCOLESTR pvReserved2,
   [in, unique] IVsHierarchy *pIVsHierarchy_RequestedProject,
   [out, optional] IVsProjectCfg **ppIVsProjectCfg_Active
);

.NET Framework Security

See Also

Reference

IVsSolutionBuildManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace