IDSRefConsumer.GetVersion 方法

返回DSRef树的版本。

命名空间:  Microsoft.VisualStudio.Data.Interop
程序集:  Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)

语法

声明
Function GetVersion As UInteger
uint GetVersion()
unsigned int GetVersion()
abstract GetVersion : unit -> uint32 
function GetVersion() : uint

返回值

类型:System.UInt32
返回NOERROR,如果成功。否则,它返回表示未指定的错误代码。

备注

DSRef 版本号硬编码,因此无法修改。

示例

IDSRefConsumer* m_srpCurrentDSRef;
WORD version;
m_srpCurrentDSRef->GetVersion(&version);

.NET Framework 安全性

请参见

参考

IDSRefConsumer 接口

Microsoft.VisualStudio.Data.Interop 命名空间