Поделиться через


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
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: Boolean
true if the UI is suppressed; otherwise, false.

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

EnvDTE80 Namespace