IVsPersistSolutionProps::OnProjectLoadFailure Method (IVsHierarchy^, String^, String^, String^)
Visual Studio 2015
Allows cleanup and memory management in cases where project fails to load.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int OnProjectLoadFailure(
IVsHierarchy^ pStubHierarchy,
String^ pszProjectName,
String^ pszProjectMk,
String^ pszKey
)
Parameters
- pStubHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] Pointer to the IVsHierarchy interface of the stub project. To be used in place of the project that failed to load.
- pszProjectName
-
Type:
System::String^
[in] Project name as it appears in the solution file (.sln). null for global section.
- pszProjectMk
-
Type:
System::String^
[in] Full path for project file. null for global section.
- pszKey
-
Type:
System::String^
[in] Name of the section.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsPersistSolutionProps::OnProjectLoadFailure( [in] IVsHierarchy *pStubHierarchy, [in] LPCOLESTR pszProjectName, [in] LPCOLESTR pszProjectMk, [in] LPCOLESTR pszKey );
VSPackages which pre-load Project pszKeys data may need to respond when the associated project fails to load.
Show: