Share via


IVsSolutionLoadManager.OnBeforeOpenProject Method

Definition

Fired before each project is opened.

public:
 int OnBeforeOpenProject(Guid % guidProjectID, Guid % guidProjectType, System::String ^ pszFileName, Microsoft::VisualStudio::Shell::Interop::IVsSolutionLoadManagerSupport ^ pSLMgrSupport);
public int OnBeforeOpenProject (ref Guid guidProjectID, ref Guid guidProjectType, string pszFileName, Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadManagerSupport pSLMgrSupport);
abstract member OnBeforeOpenProject : Guid * Guid * string * Microsoft.VisualStudio.Shell.Interop.IVsSolutionLoadManagerSupport -> int
Public Function OnBeforeOpenProject (ByRef guidProjectID As Guid, ByRef guidProjectType As Guid, pszFileName As String, pSLMgrSupport As IVsSolutionLoadManagerSupport) As Integer

Parameters

guidProjectID
Guid

The GUID of the individual project to be opened.

guidProjectType
Guid

The GUID of the type of project to be opened (e.g. Visual Basic or C#).

pszFileName
String

The name of the project file.

Returns

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

Remarks

Typically a solution load manager uses this method to set project load priority by calling SetProjectLoadPriority.

Applies to