_DTE.SuppressUI Property

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

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

bool SuppressUI { get; set; }

Property Value

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

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.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft