共用方式為


IVsSolutionEvents5.OnBeforeOpenProject(Guid, Guid, String) Method

Definition

Fired before each project is opened.

public:
 void OnBeforeOpenProject(Guid % guidProjectID, Guid % guidProjectType, System::String ^ pszFileName);
public void OnBeforeOpenProject (ref Guid guidProjectID, ref Guid guidProjectType, string pszFileName);
abstract member OnBeforeOpenProject : Guid * Guid * string -> unit
Public Sub OnBeforeOpenProject (ByRef guidProjectID As Guid, ByRef guidProjectType As Guid, pszFileName As String)

Parameters

guidProjectID
Guid

[in] The GUID of the individual project to be opened.

guidProjectType
Guid

[in] The GUID of the type of project (for example, Visual Basic or C#) to be opened.

pszFileName
String

[in] The name of the project file.

Applies to