Share via


_DTE.SuppressUI Property

Gets or sets whether UI should be displayed during the execution of automation code.

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

Syntax

'Declaration
Property SuppressUI As Boolean
bool SuppressUI { get; set; }
property bool SuppressUI {
    bool get ();
    void set (bool value);
}
abstract SuppressUI : bool with get, set
function get SuppressUI () : boolean
function set SuppressUI (value : boolean)

Property Value

Type: System.Boolean
A Boolean value indicating True if the UI is suppressed, False if not.

Remarks

Typically, automation clients do not want a 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 have to reproduce the work of those dialogs.

Examples

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

.NET Framework Security

See Also

Reference

_DTE Interface

EnvDTE Namespace