Export (0) Print
Expand All
ID
Top
Expand Minimize

Version Property

Visual Studio .NET 2003

Returns the host application's version number.

[Visual Basic .NET]
Public ReadOnly Property Version() As String
[Visual Basic 6]
Property Get Version() As String
[C++]
HRESULT __stdcall get_Version(
   /* [out, retval] */ BSTR* retVal
);
[C#]
string Version {get;}
[JScript .NET]
public function get Version() : String

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)

Example

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

See Also

Applies To: DTE Object

Show:
© 2014 Microsoft