_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
'Usage
Dim instance As _DTE
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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.