Compartir a través de


IVsUIShell3.SuppressRestart Method

Enable and disable showing the User Account Control (UAC) restart dialog box.

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

Syntax

'Declaration
Function SuppressRestart ( _
    Suppress As Boolean _
) As Integer
int SuppressRestart(
    bool Suppress
)
int SuppressRestart(
    [InAttribute] bool Suppress
)
abstract SuppressRestart : 
        Suppress:bool -> int
function SuppressRestart(
    Suppress : boolean
) : int

Parameters

  • Suppress
    Type: Boolean

    [in] True to suppress display of the dialog box.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell90.idl:

HRESULT SuppressRestart([in] VARIANT_BOOL Suppress);

.NET Framework Security

See Also

Reference

IVsUIShell3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace