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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.