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
'Déclaration
Function OnProjectLoadFailure ( _
pStubHierarchy As IVsHierarchy, _
pszProjectName As String, _
pszProjectMk As String, _
pszKey As String _
) As Integer
'Utilisation
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
- pStubHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the stub project. To be used in place of the project that failed to load.
- 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.
- pszKey
Type: System.String
[in] Name of the 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsPersistSolutionProps Interface