共用方式為


DTE2.SuppressUI Property

Definition

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

public:
 property bool SuppressUI { bool get(); void set(bool value); };
public:
 property bool SuppressUI { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(243)]
public bool SuppressUI { [System.Runtime.InteropServices.DispId(243)] get; [System.Runtime.InteropServices.DispId(243)] set; }
[<System.Runtime.InteropServices.DispId(243)>]
[<get: System.Runtime.InteropServices.DispId(243)>]
[<set: System.Runtime.InteropServices.DispId(243)>]
member this.SuppressUI : bool with get, set
Public Property SuppressUI As Boolean

Property Value

true if the UI is suppressed; otherwise, false.

Implements

Attributes

Examples

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

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.

Applies to