Share via


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

'Declaration
Function GetVersion As UInteger
uint GetVersion()
unsigned int GetVersion()
abstract GetVersion : unit -> uint32
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);

.NET Framework Security

See Also

Reference

IDSRefConsumer Interface

Microsoft.VisualStudio.Data.Interop Namespace