FlavoredProject.IVsHierarchy.QueryClose Method
Determines whether the hierarchy can be closed.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Private Function QueryClose ( _
<OutAttribute> ByRef canClose As Integer _
) As Integer Implements IVsHierarchy.QueryClose
int IVsHierarchy.QueryClose(
out int canClose
)
Parameters
- canClose
Type: System.Int32%
[out] Returns true if the hierarchy can be closed, otherwise false.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsHierarchy.QueryClose(Int32%)
Remarks
This method calls the QueryClose method, which calls the QueryClose method on the inner project.
.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.