Partager via


IVsUIShell.EnableModeless Method

Enables or disables a frame's modeless dialog box.

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

Syntax

'Déclaration
Function EnableModeless ( _
    fEnable As Integer _
) As Integer
'Utilisation
Dim instance As IVsUIShell
Dim fEnable As Integer
Dim returnValue As Integer

returnValue = instance.EnableModeless(fEnable)
int EnableModeless(
    int fEnable
)
int EnableModeless(
    [InAttribute] int fEnable
)
abstract EnableModeless : 
        fEnable:int -> int 
function EnableModeless(
    fEnable : int
) : int

Parameters

  • fEnable
    Type: System.Int32
    [in] true when exiting a modal state. false when entering a modal state.

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 IVsUIShell::EnableModeless(
   [in] BOOL fEnable
);

This method is used by any VSPackage implementer that needs to display a modal dialog and that is not already involved in an in-place relationship (for example, IVsWindowPane implementers or global command handlers).

This method is identical to the EnableModeless method.

.NET Framework Security

See Also

Reference

IVsUIShell Interface

IVsUIShell Members

Microsoft.VisualStudio.Shell.Interop Namespace