Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Properties, Methods, and Events
Collapse the table of content
Expand the table of content

DTE Object Properties, Methods, and Events

Visual Studio .NET 2003

Properties

ActiveDocument Property (DTE Object) Returns the current active document.
ActiveSolutionProjects Property Returns an array of currently selected projects.
ActiveWindow Property (General Extensibility) Returns the current active window or the top-most window if no others are active. Returns Nothing if no windows are open.
AddIns Property (General Extensibility) Returns the AddIns collection, containing all currently available Add-ins.
CommandBars Property (DTE Object) Returns a reference to the development environment's CommandBars object.
CommandLineArguments Property Returns a string representing the command-line arguments.
Commands Property Returns the Commands Collection.
ContextAttributes Property (General Extensibility) Returns a ContextAttribute Object which allows automation clients to add new attributes to the current selected items in the Dynamic Help window and provide contextual help for the additional attributes.
CSharpProjects Property A property of type Projects containing a collection of only the C# projects in the solution.
Debugger Property Returns the debugger objects.
DisplayMode Property Returns the display mode, either MDI or Tabbed Documents.
Documents Property (DTE Object) Returns the collection of open documents in the development environment.
DTE Property (General Extensibility) Returns the top-level extensibility object.
Edition Property Returns a description of the edition of the environment.
Events Property (DTE Object) Returns a reference to the Events Object.
Find Property (DTE Object) Returns the Find Object that represents global text find operations.
FullName Property (General Extensibility) Returns the full path of the environment executable, devenv.exe.
Globals Property (General Extensibility) Returns the Globals Object for storing persistent data.
ItemOperations Property (DTE Object) Returns the ItemOperations Object.
LocaleID Property Returns the ID of the locale in which the development environment is running.
Macros Property (DTE Object) Returns the Macros Object.
MacrosIDE Property Returns the root of the Macros IDE's automation model.
MainWindow Property Returns a Window Object representing the main development environment window.
Mode Property (DTE Object) Returns the mode of the development environment, either debug or design.
Name Property (General Extensibility) Sets/returns the name of the object.
ObjectExtenders Property (DTE Object) Returns the ObjectExtenders Object.
Properties Property (DTE Object) Returns a Properties collection representing all available categories and subcategories contained in the Options dialog box on the Tools menu.
RegistryRoot Property Returns a string with the path to the root of the Visual Studio registry settings.
SelectedItems Property (General Extensibility) Returns a collection containing the items currently selected in the environment.
Solution Property Returns the Solution Object that represents all open projects in the current instance of the environment and allows access to the build objects.
SourceControl Property Returns a SourceControl Object that allows you to manipulate the source code control state of the file behind the object.
StatusBar Property (DTE Object) Returns the StatusBar Object, representing the status bar on the main development environment window.
SuppressUI Property Returns or sets whether UI should be displayed during the execution of automation code.
UndoContext Property (DTE Object) Returns the global UndoContext Object.
UserControl Property (DTE Object) Returns whether the environment was launched by a user or by automation.
VBProjects Property A property of type Projects containing a collection of only the Visual Basic projects in the solution.
Version Property Returns the host application's version number.
WindowConfigurations Property (DTE Object) Returns the WindowConfigurations Collection, representing all available window configurations.
Windows Property (General Extensibility) Returns the Windows Collection.

Methods

ExecuteCommand Method (DTE Object) Executes the specified command.
GetObject Method (General Extensibility) Returns an interface or object that is late-bound to the DTE Object and can be accessed by name at run time.
LaunchWizard Method (DTE Object) Runs a wizard with the supplied parameters.
Quit Method Closes the environment.
SatelliteDLLPath Method Returns the computed path to the satellite DLL when given the installation directory for an Add-in or wizard and the file name of the DLL containing localized resources.

See Also

DTE Object

Show:
© 2015 Microsoft