Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Queries listening clients as to whether the project can be unloaded.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function OnQueryUnloadProject ( _
pRealHierarchy As IVsHierarchy, _
<OutAttribute> ByRef pfCancel As Integer _
) As Integer
int OnQueryUnloadProject(
IVsHierarchy pRealHierarchy,
out int pfCancel
)
int OnQueryUnloadProject(
[InAttribute] IVsHierarchy^ pRealHierarchy,
[InAttribute] [OutAttribute] int% pfCancel
)
abstract OnQueryUnloadProject :
pRealHierarchy:IVsHierarchy *
pfCancel:int byref -> int
function OnQueryUnloadProject(
pRealHierarchy : IVsHierarchy,
pfCancel : int
) : int
Parameters
pRealHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] Pointer to the IVsHierarchy interface of the project to be unloaded.
pfCancel
Type: Int32%[out] true if the client vetoed unloading the project. false if the client approved unloading the project.
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 IVsSolutionEvents3::OnQueryUnloadProject(
[in] IVsHierarchy *pRealHierarchy,
[in,out] BOOL *pfCancel
);
.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.