共用方式為


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

傳回值

類型:UInt32
NOERROR 傳回,如果失敗。否則,會傳回一個未指定的錯誤程式碼。

備註

DSRef 版本號碼硬式編碼,而且無法變更。

範例

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

.NET Framework 安全性

請參閱

參考

IDSRefConsumer 介面

Microsoft.VisualStudio.Data.Interop 命名空間