This documentation is archived and is not being maintained.

IVsSolutionLoadManager.OnBeforeOpenProject Method

Fired before each project is opened.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int OnBeforeOpenProject(
	ref Guid guidProjectID,
	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.Int32
If 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: