DTE2.Version 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取宿主应用程序的版本号。
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
属性值
宿主应用程序的版本号。
实现
- 属性
示例
Sub VersionExample()
msgbox(dte2.Version)
End Sub
注解
返回的字符串具有以下格式:
D[D[.D[D]]][ (?+)]
其中:
字母 D 表示以10为基数的数字。
文本字符包括句点 (. ) 、逗号 (、) 和左括号和右括号。
问号 (? ) 与任何字符匹配。
加号 (+) 与上述格式说明中的任何字符的一次或多次匹配。
方括号 ( [] ) 表示括号中的字符是可选的。
请注意左括号前的空格。
示例结果字符串:
2.45 (debug version)