Partager via


IVsPersistSolutionProps.OnProjectLoadFailure 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

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

Remarks

Implementors of this method are expected to be safe to be accesssed from any thread if its owner is passed to IVsSolutionPersistence on a background thread.

Applies to