IDSRefConsumer.GetVersion Method

Returns the version of the DSRef tree.

Namespace:  Microsoft.VisualStudio.Data.Interop
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Function GetVersion As UInteger
'使用
Dim instance As IDSRefConsumer
Dim returnValue As UInteger

returnValue = instance.GetVersion()
uint GetVersion()
unsigned int GetVersion()
function GetVersion() : uint

Return Value

Type: System.UInt32

Returns NOERROR if successful. Otherwise, it returns an unspecified failure code.

Remarks

DSRef version numbers are hard-coded and cannot be modified.

Examples

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

Permissions

See Also

Reference

IDSRefConsumer Interface

IDSRefConsumer Members

Microsoft.VisualStudio.Data.Interop Namespace