IVsPersistSolutionProps2.OnSolutionLoadFailure Method

Method for the package to call when a solution fails to load.

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

Syntax

'宣言
Function OnSolutionLoadFailure ( _
    pszKey As String _
) As Integer
'使用
Dim instance As IVsPersistSolutionProps2
Dim pszKey As String
Dim returnValue As Integer

returnValue = instance.OnSolutionLoadFailure(pszKey)
int OnSolutionLoadFailure(
    string pszKey
)
int OnSolutionLoadFailure(
    [InAttribute] String^ pszKey
)
function OnSolutionLoadFailure(
    pszKey : String
) : int

Parameters

  • pszKey
    Type: System.String

    [in] Pointer to a string containing the key used when creating the solution.

Return Value

Type: System.Int32

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

Permissions

See Also

Reference

IVsPersistSolutionProps2 Interface

IVsPersistSolutionProps2 Members

Microsoft.VisualStudio.Shell.Interop Namespace