IDSRefConsumer.GetVersion Method
Returns the version of the DSRef tree.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities.Interop
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
Function GetVersion As UInteger
uint GetVersion()
unsigned int GetVersion()
abstract GetVersion : unit -> uint32
function GetVersion() : uint
Return Value
Type: System.UInt32
NOERROR if successful; otherwise, an unspecified failure code.
Remarks
DSRef version numbers are hard-coded and cannot be modified.
Examples
C++
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.
See Also
Reference
Microsoft.VisualStudio.Data.Services.SupportEntities.Interop Namespace