IVsSolutionBuildManager2.FindActiveProjectCfg Method (IntPtr, IntPtr, IVsHierarchy, array<IVsProjectCfg )
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
'Usage
Dim instance As IVsSolutionBuildManager2
Dim pvReserved1 As IntPtr
Dim pvReserved2 As IntPtr
Dim pIVsHierarchy_RequestedProject As IVsHierarchy
Dim ppIVsProjectCfg_Active As IVsProjectCfg()
Dim returnValue As Integer
returnValue = instance.FindActiveProjectCfg(pvReserved1, _
pvReserved2, pIVsHierarchy_RequestedProject, _
ppIVsProjectCfg_Active)
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).
- pIVsHierarchy_RequestedProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to an IVsHierarchy_RequestedProject object.
- ppIVsProjectCfg_Active
Type: array<Microsoft.VisualStudio.Shell.Interop.IVsProjectCfg[]
[out] Pointer to a pointer to an IVsProjectCfg_Active object.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsSolutionBuildManager2 Interface