다음을 통해 공유


IVsSccVirtualFolders.GetVirtualFolders(UInt32, CALPOLESTR[]) Method

Definition

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

public:
 int GetVirtualFolders(System::UInt32 itemid, cli::array <Microsoft::VisualStudio::OLE::Interop::CALPOLESTR> ^ pCaStringsOut);
int GetVirtualFolders(unsigned int itemid, std::Array <Microsoft::VisualStudio::OLE::Interop::CALPOLESTR> const & pCaStringsOut);
public int GetVirtualFolders (uint itemid, Microsoft.VisualStudio.OLE.Interop.CALPOLESTR[] pCaStringsOut);
abstract member GetVirtualFolders : uint32 * Microsoft.VisualStudio.OLE.Interop.CALPOLESTR[] -> int
Public Function GetVirtualFolders (itemid As UInteger, pCaStringsOut As CALPOLESTR()) As Integer

Parameters

itemid
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
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.

Returns

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.

Applies to