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

‘선언
Function SuppressRestart ( _
    Suppress As Boolean _
) As Integer
‘사용 방법
Dim instance As IVsUIShell3
Dim Suppress As Boolean
Dim returnValue As Integer

returnValue = instance.SuppressRestart(Suppress)
int SuppressRestart(
    bool Suppress
)
int SuppressRestart(
    [InAttribute] bool Suppress
)
abstract SuppressRestart : 
        Suppress:bool -> int 
function SuppressRestart(
    Suppress : boolean
) : int

Parameters

  • Suppress
    Type: System.Boolean
    [in] True to suppress display of the dialog box.

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 vsshell90.idl:

HRESULT SuppressRestart([in] VARIANT_BOOL Suppress);

.NET Framework Security

See Also

Reference

IVsUIShell3 Interface

IVsUIShell3 Members

Microsoft.VisualStudio.Shell.Interop Namespace