Compartilhar via


IVsPersistSolutionProps.OnProjectLoadFailure Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function OnProjectLoadFailure ( _
    pStubHierarchy As IVsHierarchy, _
    pszProjectName As String, _
    pszProjectMk As String, _
    pszKey As String _
) As Integer
int OnProjectLoadFailure(
    IVsHierarchy pStubHierarchy,
    string pszProjectName,
    string pszProjectMk,
    string pszKey
)
int OnProjectLoadFailure(
    [InAttribute] IVsHierarchy^ pStubHierarchy, 
    [InAttribute] String^ pszProjectName, 
    [InAttribute] String^ pszProjectMk, 
    [InAttribute] String^ pszKey
)
abstract OnProjectLoadFailure : 
        pStubHierarchy:IVsHierarchy * 
        pszProjectName:string * 
        pszProjectMk:string * 
        pszKey:string -> int
function OnProjectLoadFailure(
    pStubHierarchy : IVsHierarchy, 
    pszProjectName : String, 
    pszProjectMk : String, 
    pszKey : String
) : int

Parameters

  • pszProjectName
    Type: String

    [in] Project name as it appears in the solution file (.sln). nulla null reference (Nothing in Visual Basic) for global section.

  • pszProjectMk
    Type: String

    [in] Full path for project file. nulla null reference (Nothing in Visual Basic) for global section.

  • pszKey
    Type: String

    [in] Name of the section.

Return Value

Type: 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.

.NET Framework Security

See Also

Reference

IVsPersistSolutionProps Interface

Microsoft.VisualStudio.Shell.Interop Namespace