Delen 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

'Declaration
Function EnableModeless ( _
    fEnable As Integer _
) As Integer
int EnableModeless(
    int fEnable
)
int EnableModeless(
    [InAttribute] int fEnable
)
abstract EnableModeless : 
        fEnable:int -> int
function EnableModeless(
    fEnable : int
) : int

Parameters

  • fEnable
    Type: Int32

    [in] true when exiting a modal state. false when entering a modal state.

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 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

Microsoft.VisualStudio.Shell.Interop Namespace