IVsPersistSolutionProps.OnProjectLoadFailure(IVsHierarchy, String, String, String) Method

Definition

Allows cleanup and memory management in cases where project fails to load.

public:
 int OnProjectLoadFailure(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pStubHierarchy, System::String ^ pszProjectName, System::String ^ pszProjectMk, System::String ^ pszKey);
public:
 int OnProjectLoadFailure(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pStubHierarchy, Platform::String ^ pszProjectName, Platform::String ^ pszProjectMk, Platform::String ^ pszKey);
int OnProjectLoadFailure(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pStubHierarchy, std::wstring const & pszProjectName, std::wstring const & pszProjectMk, std::wstring const & pszKey);
public int OnProjectLoadFailure (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pStubHierarchy, string pszProjectName, string pszProjectMk, string pszKey);
abstract member OnProjectLoadFailure : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * string * string -> int
Public Function OnProjectLoadFailure (pStubHierarchy As IVsHierarchy, pszProjectName As String, pszProjectMk As String, pszKey As String) As Integer

Parameters

pStubHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the stub project. To be used in place of the project that failed to load.

pszProjectName
String

[in] Project name as it appears in the solution file (.sln). null for global section.

pszProjectMk
String

[in] Full path for project file. null for global section.

pszKey
String

[in] Name of the section.

Returns

Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to