Share via


DTE2.SuppressUI Property

Gets or sets a value indicating whether user interface (UI) should be displayed during the execution of automation code.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
Property SuppressUI As Boolean
'Usage
Dim instance As DTE2 
Dim value As Boolean 

value = instance.SuppressUI

instance.SuppressUI = value
bool SuppressUI { get; set; }
property bool SuppressUI {
    bool get ();
    void set (bool value);
}
function get SuppressUI () : boolean 
function set SuppressUI (value : boolean)

Property Value

Type: System.Boolean
true if the UI is suppressed; otherwise, false.

Implements

_DTE.SuppressUI

Remarks

Typically, automation clients do not want UI to display and block the execution of the code. Some scenarios, however, might call for invoking commands or allowing for a special-handling UI to display so that the automation client does not need to reproduce the work of those dialog boxes.

Examples

Sub SuppressUIExample()
  MsgBox(DTE2.SuppressUI)
End Sub

.NET Framework Security

See Also

Reference

DTE2 Interface

DTE2 Members

SuppressUI Overload

EnvDTE80 Namespace