Share via


VSTADTEProviderClass.GetDTE Method

Starts the Visual Studio Tools for Applications IDE and returns an instance of the DTE object for the specified host application.

Namespace:  VSTADTEProvider.Interop
Assembly:  VSTADTEProvider.Interop (in VSTADTEProvider.Interop.dll)

Syntax

'Declaration
Public Overridable Function GetDTE ( _
    bstrHostID As String, _
    dwTimeout As UInteger _
) As DTE
'Usage
Dim instance As VSTADTEProviderClass 
Dim bstrHostID As String 
Dim dwTimeout As UInteger 
Dim returnValue As DTE 

returnValue = instance.GetDTE(bstrHostID, _
    dwTimeout)
public virtual DTE GetDTE(
    string bstrHostID,
    uint dwTimeout
)
public:
virtual DTE^ GetDTE(
    [InAttribute] String^ bstrHostID, 
    [InAttribute] unsigned int dwTimeout
)
public function GetDTE(
    bstrHostID : String, 
    dwTimeout : uint
) : DTE

Parameters

  • bstrHostID
    Type: System.String

    The host ID of the host application.

  • dwTimeout
    Type: System.UInt32

    The time in milliseconds to wait for the IDE to start before failing. Pass 0 (zero) to wait indefinitely.

Return Value

Type: EnvDTE.DTE
A DTE instance that represents the Visual Studio Tools for Applications IDE.

Implements

IDTEProvider.GetDTE(String, UInt32)

.NET Framework Security

See Also

Reference

VSTADTEProviderClass Class

VSTADTEProviderClass Members

VSTADTEProvider.Interop Namespace