IVsSccVirtualFolders::GetVirtualFolders Method (UInt32, array<CALPOLESTR>^)

 

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)

int GetVirtualFolders(
	unsigned int itemid,
	array<CALPOLESTR>^ pCaStringsOut
)

Parameters

itemid
Type: System::UInt32

[in] A node type in a project hierarchy. This is a unique identifier for a project or folder item or one of the following values: VSITEMID_NIL, VSITEMID_ROOT, or VSITEMID_SELECTION.

pCaStringsOut
Type: array<Microsoft.VisualStudio.OLE.Interop::CALPOLESTR>^

[in, out] The pre-allocated CALPOLESTR structure is filled with an array of virtual folder names that appear under the node specified by itemid.

Return Value

Type: System::Int32

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

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 .3d0af12e-fc74-4ef7-b2dd-e9da5d0483c7

Return to top
Show: