IVsSolutionLoadManager.OnBeforeOpenProject 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在打开每个项目之前激发。
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
项目文件的名称。
- pSLMgrSupport
- IVsSolutionLoadManagerSupport
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
通常,解决方案负载管理器使用此方法通过调用来设置项目加载优先级 SetProjectLoadPriority 。