_DTE.Mode Property

Gets the mode of the development environment, either debug or design.

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

vsIDEMode Mode { get; }

Property Value

Type: EnvDTE.vsIDEMode
A vsIDEMode value.

Sub ModeExample()
  msgbox(dte.Mode)
End Sub

Show: