Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Version Property

_DTE.Version Property

Gets the host application's version number.

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

string Version { get; }

Property Value

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

The returned string has the following format:

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


  • 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)

Sub VersionExample()
End Sub

© 2015 Microsoft