_DTE.Version Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the host application's version number.
public:
property System::String ^ Version { System::String ^ get(); };
public:
property Platform::String ^ Version { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(100)]
public string Version { [System.Runtime.InteropServices.DispId(100)] get; }
[<System.Runtime.InteropServices.DispId(100)>]
[<get: System.Runtime.InteropServices.DispId(100)>]
member this.Version : string
Public ReadOnly Property Version As String
Property Value
The host application's version number.
- Attributes
Examples
Sub VersionExample()
msgbox(dte.Version)
End Sub
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)