IVsSolutionLoadManager.OnBeforeOpenProject 方法

定义

在打开每个项目之前激发。

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

参数

guidProjectID
Guid

要打开的单个项目的 GUID。

guidProjectType
Guid

要打开的项目类型的 GUID (例如 Visual Basic 或 c # ) 。

pszFileName
String

项目文件的名称。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

通常,解决方案负载管理器使用此方法通过调用来设置项目加载优先级 SetProjectLoadPriority

适用于