IVsSccVirtualFolders.GetVirtualFolders Method

This method retrieves a list of virtual folders that appear under a specified node in a project hierarchy.

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

Syntax

'Declaration
Function GetVirtualFolders ( _
    itemid As UInteger, _
    <OutAttribute> pCaStringsOut As CALPOLESTR() _
) As Integer
int GetVirtualFolders(
    uint itemid,
    CALPOLESTR[] pCaStringsOut
)
int GetVirtualFolders(
    [InAttribute] unsigned int itemid, 
    [OutAttribute] array<CALPOLESTR>^ pCaStringsOut
)
abstract GetVirtualFolders : 
        itemid:uint32 * 
        pCaStringsOut:CALPOLESTR[] byref -> int
function GetVirtualFolders(
    itemid : uint, 
    pCaStringsOut : CALPOLESTR[]
) : int

Parameters

Return Value

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

Remarks

COM Signature

From ivssccvirtualfolders.idl

HRESULT GetVirtualFolders(
   [in] VSITEMID itemid,
   [out] CALPOLESTR *pCaStringsOut
);

The array of names returned in the pre-allocated CALPOLESTR structure needs to be de-allocated with a call to CoTaskMemFree.

.NET Framework Security

See Also

Reference

IVsSccVirtualFolders Interface

Microsoft.VisualStudio.Shell.Interop Namespace