Bagikan melalui


IVsSolutionBuildManager2.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: System.IntPtr
    [in] Reserved. Must be nulla null reference (Nothing in Visual Basic).
  • pvReserved2
    Type: System.IntPtr
    [in] Reserved. Must be nulla null reference (Nothing in Visual Basic).

Return Value

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

Implements

IVsSolutionBuildManager.FindActiveProjectCfg(IntPtr, IntPtr, IVsHierarchy, array<IVsProjectCfg[])

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionBuildManager2::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

IVsSolutionBuildManager2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace