Compartir a través de


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

'Declaración
Function OnProjectLoadFailure ( _
    pStubHierarchy As IVsHierarchy, _
    pszProjectName As String, _
    pszProjectMk As String, _
    pszKey As String _
) As Integer
'Uso
Dim instance As IVsPersistSolutionProps
Dim pStubHierarchy As IVsHierarchy
Dim pszProjectName As String
Dim pszProjectMk As String
Dim pszKey As String
Dim returnValue As Integer

returnValue = instance.OnProjectLoadFailure(pStubHierarchy, _
    pszProjectName, pszProjectMk, pszKey)
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: System.String
    [in] Project name as it appears in the solution file (.sln). nulla null reference (Nothing in Visual Basic) for global section.
  • pszProjectMk
    Type: System.String
    [in] Full path for project file. nulla null reference (Nothing in Visual Basic) for global section.

Return Value

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

IVsPersistSolutionProps Members

Microsoft.VisualStudio.Shell.Interop Namespace