次の方法で共有


IVsAggregatableProjectCorrected.SetAggregateProjectTypeGuids Method

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

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

'宣言
Function SetAggregateProjectTypeGuids ( _
    lpstrProjTypeGuids As String _
) As Integer
'使用
Dim instance As IVsAggregatableProjectCorrected
Dim lpstrProjTypeGuids As String
Dim returnValue As Integer

returnValue = instance.SetAggregateProjectTypeGuids(lpstrProjTypeGuids)
int SetAggregateProjectTypeGuids(
    string lpstrProjTypeGuids
)
int SetAggregateProjectTypeGuids(
    String^ lpstrProjTypeGuids
)
abstract SetAggregateProjectTypeGuids : 
        lpstrProjTypeGuids:string -> int 
function SetAggregateProjectTypeGuids(
    lpstrProjTypeGuids : String
) : int

Parameters

  • lpstrProjTypeGuids
    Type: System.String
    String containing the project type GUIDs.

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

IVsAggregatableProjectCorrected Interface

IVsAggregatableProjectCorrected Members

Microsoft.VisualStudio.Shell.Flavor Namespace