We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Program Interface

Important   Do not use this object for new applications. It has been superseded by the Process2 object, which we recommend instead. However, this object will continue to work in existing code.

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

public interface Program

The Program type exposes the following members.

Public propertyCollectionGets the collection that contains the object that supports this property or is contained in this code construct. Returns null for an object that is not obtained from a collection.
Public propertyDTEGets the top-level extensibility object.
Public propertyIsBeingDebuggedGets whether a program is being debugged when this property is called.
Public propertyNameGets the name of the object.
Public propertyParentGets the immediate parent object of a Program object.
Public propertyProcessGets the process by which this program is managed.
Public propertyThreadsGets the collection of threads that are being managed by this program.

The Program object is used to examine and manipulate programs. You can use this object to determine if a program is being debugged, and you can examine a program process and threads managed by the program.