IVsSolutionLoadManager.OnBeforeOpenProject Method

Definition

Fired before each project is opened.

C++
public:
 int OnBeforeOpenProject(Guid % guidProjectID, Guid % guidProjectType, System::String ^ pszFileName, Microsoft::VisualStudio::Shell::Interop::IVsSolutionLoadManagerSupport ^ pSLMgrSupport);

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

製品 バージョン
Visual Studio SDK 2015, 2017, 2019