public override object GetProperty(int propId)
{
switch ((__VSHPROPID) propId)
{
case __VSHPROPID.VSHPROPID_ConfigurationProvider:
return ConfigProvider;
case __VSHPROPID.VSHPROPID_ProjectName:
return Caption;
case __VSHPROPID.VSHPROPID_ProjectDir:
return ProjectFolder;
case __VSHPROPID.VSHPROPID_TypeName:
return ProjectType;
case __VSHPROPID.VSHPROPID_ShowProjInSolutionPage:
return ShowProjectInSolutionPage;
case __VSHPROPID.VSHPROPID_ExpandByDefault:
return true;
// Use the same icon as if the folder was closed
case __VSHPROPID.VSHPROPID_OpenFolderIconIndex:
return GetProperty((int) __VSHPROPID.VSHPROPID_IconIndex);
}
switch ((__VSHPROPID2) propId)
{
case __VSHPROPID2.VSHPROPID_SupportsProjectDesigner:
return SupportsProjectDesigner;
case __VSHPROPID2.VSHPROPID_PropertyPagesCLSIDList:
return
Utilities.CreateSemicolonDelimitedListOfStringFromGuids(
GetConfigurationIndependentPropertyPages());
case __VSHPROPID2.VSHPROPID_CfgPropertyPagesCLSIDList:
return
Utilities.CreateSemicolonDelimitedListOfStringFromGuids(GetConfigurationDependentPropertyPages());
case __VSHPROPID2.VSHPROPID_PriorityPropertyPagesCLSIDList:
return Utilities.CreateSemicolonDelimitedListOfStringFromGuids(GetPriorityProjectDesignerPages());
case __VSHPROPID2.VSHPROPID_Container:
return true;
default:
break;
}
return base.GetProperty(propId);
}