Share via


DTE2.Version Property

Gets the host application's version number.

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

Syntax

'Declaration
ReadOnly Property Version As String
'Usage
Dim instance As DTE2 
Dim value As String 

value = instance.Version
string Version { get; }
property String^ Version {
    String^ get ();
}
function get Version () : String

Property Value

Type: System.String
The host application's version number.

Implements

_DTE.Version

Remarks

The returned string has the following format:

D[D[.D[D]]][ (?)]

where:

  • The letter D represents a base-ten digit.

  • Literal characters include period (.), comma (,), and opening and closing parentheses.

  • A question mark (?) matches any character.

  • A plus sign () matches one or more occurrences of any character in the above format description.

  • Brackets ([ ]) denote that the characters between the brackets are optional.

Note the space before the opening parenthesis.

An example result string:

2.45 (debug version)

Examples

Sub VersionExample()
  msgbox(dte2.Version)
End Sub

.NET Framework Security

See Also

Reference

DTE2 Interface

DTE2 Members

Version Overload

EnvDTE80 Namespace