IVsSolutionLoadManager.OnBeforeOpenProject Method (Guid, Guid, String, IVsSolutionLoadManagerSupport)
Visual Studio 2015
Fired before each project is opened.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int OnBeforeOpenProject( [InAttribute] ref Guid guidProjectID, [InAttribute] ref Guid guidProjectType, string pszFileName, IVsSolutionLoadManagerSupport pSLMgrSupport )
Parameters
- guidProjectID
-
Type:
System.Guid
The GUID of the individual project to be opened.
- guidProjectType
-
Type:
System.Guid
The GUID of the type of project to be opened (e.g. Visual Basic or C#).
- pszFileName
-
Type:
System.String
The name of the project file.
- pSLMgrSupport
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadManagerSupport
The IVsSolutionLoadManagerSupport service.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Typically a solution load manager uses this method to set project load priority by calling SetProjectLoadPriority.
Show: