Share via


IVsAggregatableProject.SetAggregateProjectTypeGuids(String) Method

Definition

This method updates the list of GUIDs that are persisted in the project file of the base project.

public:
 int SetAggregateProjectTypeGuids(System::String ^ lpstrProjTypeGuids);
public:
 int SetAggregateProjectTypeGuids(Platform::String ^ lpstrProjTypeGuids);
int SetAggregateProjectTypeGuids(std::wstring const & lpstrProjTypeGuids);
public int SetAggregateProjectTypeGuids (string lpstrProjTypeGuids);
abstract member SetAggregateProjectTypeGuids : string -> int
Public Function SetAggregateProjectTypeGuids (lpstrProjTypeGuids As String) As Integer

Parameters

lpstrProjTypeGuids
String

String containing the project type GUIDs.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsAggregatableProject::SetAggregateProjectTypeGuids([in] LPCOLESTR lpstrProjTypeGuids);

Calling this method should dirty the project file. A common pattern of use is to call SetAggregateProjectTypeGuids with an updated list followed by saving the project, unloading and then reloading to recreate the project with the new aggregation in effect.

It is not necessary for the GUID of the base project itself to be persisted in the project file. The inner-most base project may also choose to strip its own GUID before persisting and implicitly adding it when retrieving the list of GUIDs.

Applies to